Set top level directory to be handled by Perl?

Posted by Sam Lee on Server Fault See other posts from Server Fault or by Sam Lee
Published on 2010-04-01T22:56:39Z Indexed on 2010/04/01 23:33 UTC
Read the original article Hit count: 350

Filed under:
|
|

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?

© Server Fault or respective owner

Set top level directory to be handled by Perl?

Posted by Sam Lee on Stack Overflow See other posts from Stack Overflow or by Sam Lee
Published on 2010-04-01T22:56:39Z Indexed on 2010/04/01 23:03 UTC
Read the original article Hit count: 350

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about perl

Related posts about apache