in reply to apache + modperl problem
And in your httpd.conf add the following:package My::Simple; use strict; use warnings 'all'; use Apache2::RequestRec (); sub handler : method { my ($class, $r) = @_; print "content-type: text/html\n\n"; print "<h1>HELLO WORLD!</h1>"; return 0; } 1;# return true:
Restart your Apache httpd server and access yoursite.com/.<Perl> use lib '/path/to/your/libs'; </Perl> PerlModule My::Simple <VirtualHost *:80> ServerName www.your-website.com ServerAlias your-website.com SetHandler perl-script PerlResponseHandler My::Simple </VirtualHost>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: apache + modperl problem
by Anonymous Monk on Aug 18, 2008 at 04:33 UTC | |
by jdrago_999 (Hermit) on Aug 18, 2008 at 16:15 UTC | |
by scotbert (Initiate) on Mar 31, 2009 at 09:05 UTC | |
by jdrago_999 (Hermit) on Mar 31, 2009 at 16:38 UTC | |
by scotbert (Initiate) on Apr 01, 2009 at 08:41 UTC | |
|