mod_perl2 and location /

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-28-2006
sylwek@mods.pl
 
Posts: n/a
Default mod_perl2 and location /

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

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:17 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0