View previous topic :: View next topic |
Author |
Message |
bedlamp n00b
Joined: 23 Oct 2005 Posts: 21 Location: South Africa
|
Posted: Sat Sep 22, 2007 11:33 am Post subject: apache and mod_perl |
|
|
I have just installed apache (2.2.4-r12) and mod_perl (2.0.3-r1) and when i try to run a script i get a 403 Forbidden message
apache conf
Code: | APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D LANGUAGE -D SSL -D SSL_DEFAULT_VHOST -D SUEXEC -D PERL" |
mod_perl conf
Code: |
Alias /cgi-perl/ /var/www/localhost/perl
<Location /perl-status>
SetHandler perl-script
PerlResponseHandler Apache2::Status
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>
<Location /cgi-perl/*.pl>
SetHandler perl-script
PerlResponseHandler ModPerl::PerlRun
Options -Indexes ExecCGI
PerlSendHeader On
</Location>
|
Code: |
bedlamp # ls -l /var/www/localhost/
total 8
drwxr-xr-x 2 root root 4096 Sep 22 13:03 htdocs
drwxr-xr-x 2 root root 4096 Sep 22 12:17 perl |
I must be missing something. Any help would be appreciated |
|
Back to top |
|
|
hanj Veteran
Joined: 19 Aug 2003 Posts: 1490
|
|
Back to top |
|
|
bedlamp n00b
Joined: 23 Oct 2005 Posts: 21 Location: South Africa
|
Posted: Sat Sep 22, 2007 4:10 pm Post subject: |
|
|
yes. i was playing around and i added -D USERDIR to apache.conf, and it works in the userdir, but still not in the default cgi-bin directory |
|
Back to top |
|
|
|