I have an Apache server set up to use mod_perl. I have it set up to handle all requests using a Perl module MyModule
. Here is part of my httpd.conf
:
LoadModule perl_module modules/mod_perl.so
<Directory />
Order Deny,Allow
Allow from all
</Directory>
PerlModule MyModule
<Location />
SetHandler modperl
PerlResponseHandler MyModule
</Location>
This seems to work fine, except top level directory (ie. www.mysite.com/) is not being sent to MyModule
. What's going wrong?
Option One
Specify a DirectoryIndex which (a) is valid, and (b) is processed via mod_perl.
Option Two
Use a rewrite rule