[prev] [thread] [next] [Date index for 2005/02/25]
I've been trying to track down why the DirectoryIndex under Apache2+MP2
isn't working with the following configuration. From Google and
listserv searching, the only suggestion I found was to add a
"RedirectMatch permanent (.*)/$ $1/index.html" to my config, but this
doesn't seem like a good solution and others have reported experiencing
the same problem.
Is there a simple fix to this httpd.conf file; is this a known issue
with Apache2+MP2? Any help would be appreciated.
Thanks,
Matthew
-----
This URL works correctly:
http://ip.ip.ip.ip/testnomp2/
This URL returns a 403 Forbidden:
http://ip.ip.ip.ip/testmp2/
and reports "Directory index forbidden by rule: /home/www/testmp2/" in
the error_log.
This URL works correctly:
http://ip.ip.ip.ip/testmp2/index.pl
-----
Apache/2.0.53 (Unix) mod_ssl/2.0.53 OpenSSL/0.9.7e mod_perl/1.999.21
Perl/v5.8.6 configured
-----
% cat /usr/local/etc/apache2/httpd.conf
User apache
Group apache
Listen ip.ip.ip.ip:80
# -- modules --
LoadModule apreq_module modules/mod_apreq.so
# -- logging --
LogFormat "%h %l %u %t \"%r\" %>s %b" common
ErrorLog /var/apache2/logs/error_log
# -- basic restrictions --
<Directory />
Options None +FollowSymLinks
AllowOverride None
Order Deny,Allow
Deny from all
</Directory>
# -- virtual host --
<VirtualHost ip.ip.ip.ip:80>
CustomLog /var/apache2/logs/access_log common
Alias /testnomp2 /home/www/testnomp2
<Directory /home/www/testnomp2/>
DirectoryIndex index.html
Allow from all
</Directory>
Alias /testmp2 /home/www/testmp2
<Directory /home/www/testmp2/>
DirectoryIndex index.pl
Options +ExecCGI
SetHandler perl-script
PerlHandler ModPerl::Registry
Order Allow,Deny
Allow from all
</Directory>
</VirtualHost>
-----
% pwd
/home/www
% ls -laR
drwxr-xr-x 2 apache apache 512 Feb 24 10:33 testmp2
drwxr-xr-x 2 apache apache 512 Feb 24 10:33 testnomp2
./testmp2:
-rwxr-xr-x 1 apache apache 118 Feb 24 10:33 index.pl
./testnomp2:
-rw-r--r-- 1 apache apache 30 Feb 24 10:33 index.html
|
[mp2] DirectoryIndex issues
|
Generated at 17:56 on 01 Mar 2005 by mariachi v0.52