apache directory (not) listing

Eric "Shubes" plug at shubes.net
Thu Jul 13 12:03:04 MST 2006


I'm a newbie to apache and figure this must be a simple problem, but 
I've little enough hair. ;)

I've set up a virtual host in httpd.conf:
<VirtualHost *:80>
     ServerAdmin webmaster at shubes.net
     ServerName qmt.shubes.net
     ServerAlias qmt.shubes.homeip.net
     DocumentRoot /var/vhosts/qmt.shubes.net/docs
     <Directory "/var/vhosts/qmt.shubes.net/docs">
     Options +Indexes
     AllowOverride All
     Order allow,deny
     Allow from all
     </Directory>
     ScriptAlias /cgi-bin/ "/var/vhosts/qmt.shubes.net/cgi-bin/"
     ErrorLog "/var/vhosts/qmt.shubes.net/logs/error_log"
     CustomLog "/var/vhosts/qmt.shubes.net/logs/referer_log" referer
     CustomLog "/var/vhosts/qmt.shubes.net/logs/agent_log" agent
     CustomLog "/var/vhosts/qmt.shubes.net/logs/access_log" common
</VirtualHost>

Everything seems fine, as I can wget or browse files from the server.

I'm trying to have apache generate a directory index, but I get the 
(dreaded?)
"Directory index forbidden by rule: /var/vhosts/qmt.shubes.net/docs/" 
error message in the log.

I've googled, and found 
http://www.onlamp.com/pub/a/apache/2004/04/22/apacheckbk.html
which seemed helpful, but I've checked everything there, and I'm still 
stuck.

System is standard CentOS4.3, httpd-2.0.52-22.ent.centos4.
After changing httpd.conf, I've done: # service httpd restart

Any ideas?
TIA
-- 
-Eric 'shubes'


More information about the PLUG-discuss mailing list