Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Apache::Request causing Mason to fail.

by thunders (Priest)
on Sep 16, 2003 at 17:48 UTC ( [id://291972]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Apache::Request causing Mason to fail.

Well I discovered the source of the error and, it's pretty dumb on my part. But maybe someone will ask this question again so here goes...

Mandrake runs two Apache servers at once, a regular one on port 80, and a mod_perl enabled one on port 8200.

To use mod_perl dependent programs i'd need to call the script as http://hostname:8200/test.mhtml with my original config, or alternatively configure it under /var/www/perl which is set up to automatically calls the mod_perl enabled httpd-perl at http://hostname/perl/mason/test.mhtml

I used this config in commonhttpd.conf

<IfModule mod_perl.c> AddType text/html .mhtml PerlSetVar MasonCompRoot /var/www/perl/mason PerlSetVar MasonDataDir /var/www/mason-data <FilesMatch "\.mhtml$"> SetHandler perl-script PerlHandler HTML::Mason::ApacheHandler </FilesMatch> </IfModule>

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://291972]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.