-
Need Apache Help
I'm trying to set up apache and I need some help.
My DirectoryRoot is /var/www/html and for the cgi it is /var/www/cgi-bin with a ScriptAlias /cgi-bin/
I want to run scripts from my local directory
/home/owen/cgi-bin
and access them through
/home/owen/public_html
The computer is not connected to the internet, I am just setting it up so I can learn php.
I can access the html scripts in /home/owen/public_html
"http://localhost/~owen/test.html"
test.html contains a form that needs processing by test.pl
that is in /home/owen/cgi-bin.
Is there a way to set up
"http://localhost/cgi-bin/owen/test.pl" ?
I greatly appreciate the help. Thank you!
-
The way that it would show up, if I remember right is:
http://localhost/~owen/cgi-bin/test.pl
Try that.
You also need to remember to go to your httpd.conf and make sure that the options allows the execution of scripts in that directory and that it is allowed to override the default (which doesn't allow it). I think you are looking for the following: (I had to hack this out of my conf, (to hide my info obviously), you might need to play with it a little...)
#
<Directory /home/*/public_html>
# AllowOverride FileInfo AuthConfig Limit
Options Indexes ExecCGI
<Limit GET POST OPTIONS PROPFIND>
Order Deny,Allow
Allow from 127.0.0.1
Deny from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
Nebulus