This is a discussion on mod_perl2 and location / within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi all, Just install mod_perl2 and it work nice :) But i'm not happy with configuration... - probably becouse before i ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi all,
Just install mod_perl2 and it work nice :) But i'm not happy with configuration... - probably becouse before i used mod_php... Config is: DocumentRoot /var/www/site/ <Location /perl> SetHandler perl-script PerlHandler ModPerl::Registry Options ExecCGI PerlSendHeader On [...] </Location> like in EVERYWHERE on net... Scripts are in /var/www/site/perl/. Not so clean config like in php...("perl" part in location tag...). Everything work except getting root (eg. http://www.site.my/)... 404... So i added: RewriteRule ^/$ /perl/index.pl and it start to work... But i do not like this.... How to remove this rule ? I added: RewriteRule ^/(.+)$ /perl/$1 too. I read mod_rewrite is fast but it is ugly for me... Probably i can remove perl dir and hold scripts in docRoot but still ^/$ rule will be required... So how to make / url work ? DirectoryIndex ? Or write my own class ? Changing .pl sufix to .html would be nice too... And for "inline" perl scripts (like php <? ?>) i need Embperl ? Is it fast ? And one question more: is ModPerl::Registry Debian-specific addon ? Everywhere is Apache::Registry or Apache2::Registry... Anyone can help ? Regards, Sylwester Lunski |