Hello,
I'm fond of Apache's "option indexes" feature that, in lieu of finding an index.html file, will just list the contents of the directory instead. However, I can't get this to work in my cgi-bin directory, despite trying a lot of messing around with my default site configuration file and directory permissions. (Note that I *can* execute CGI scripts just fine -- this isn't a problem.)
Here's my configuration file:
Code:
<VirtualHost *:8080>
ServerAdmin "webmaster@localhost.com"
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride all
Options +ExecCGI Indexes Multiviews FollowSymLinks
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel info
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
...and I'm trying to list the directory using the URL:
http://atomix:8080/cgi-bin/ . The result is a "403 Forbidden" error.
Any ideas what I might need to fix? (As mentioned, something like
http://atomix:8080/cgi-bin/TestScript works just fine...)
I've also found that even without "+ExecCGI" in the options line CGI scripts are still executed ... I suppose this is the default? (I was trying to make /usr/lib/chi-bin's configuration indentical to /var/www's, which does list the directories as I'd like.)
This is running Apache 2.2.9 and Ubuntu 8.10.
Thanks for the help,
---Joel Koltner