Question
I managed to install just about everything the Install Docs recommended, and a first look at the "view" Script shows that it seems to work.
However, I've got an annoying problem:
If the "view" Script isn't named view.pl, it just doesnt work. I tried the .htaccess Trick with "SetHandler cgi-script", however it didn't change anything.
For the fun of it, I renamed view.pl back to "view" and accessed it via a browser - returns a 404 - even though the file is there. This only happens with the "SetHandler cgi-script" directive. As soon as I rename it back to view.pl - everything works. Without the "SetHandler cgi-script" directive, the script just gets displayed as plaintext.
I'm hoping that someone has a solution for my problem, I'd like to change the URLs from:
www.example.com/bin/view.pl/Main/ to www.example.com/bin/view/Main/
As far as testenv.pl is concerned, I don't get any errors and the PATH_INFO part works flawlessly, it just needs the .pl extension.
Thanks in advance for any suggestions, Jan
Environment
--
JanBouwers - 20 Jun 2005
Answer
Great! I just found the answer here. I've been looking for "+Plesk" all the time, since I figured it would have to be a Plesk specific problem, but it was not:
WiktorWodecki 's Comment on
http://twiki.org/cgi-bin/view/Codev/ModPerl
has the solution I needed:
Options +ExecCGI
SetHandler cgi-script
Allow from all
# mod_perl stuff
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlSendHeader On
PerlOptions +ParseHeaders
was all that I needed to be able to "view" the "view script" without having to use the .pl extension.
I found out that the "
PerlResponseHandler ModPerl::Registry" is the important part. The scripts still works fine without "SetHandler cgi-script".
Ah well. Stupid me, just a matter of finding the correct search terms.
--
JanBouwers - 20 Jun 2005