
VernonDozier
Novice
Mar 26, 2009, 9:19 AM
Post #17 of 17
(807 views)
|
|
Re: [FishMonger] First Post - Trying to get HelloWorld.cgi to work on Fed. 10
[In reply to]
|
Can't Post
|
|
OK, good news. HelloWorld.pl and HelloWorld.cgi are both working in the /var/www/cgi-bin directory when I I type: http://localhost/cgi-bin/HelloWorld.pl or http://localhost/cgi-bin/HelloWorld.cgi Regarding adding this line: AddHandler cgi-script .cgi .pl where would it go in the httpd.conf file? For example, if I wanted the following directories to allow cgi-bin: /var/www/html/directory1 /var/www/html/directory2 would I add something like:
<Directory "/var/www/html/directory1"> AllowOverride All Options ExecCGI Order allow,deny Allow from all AddHandler cgi-script .cgi .pl </Directory> <Directory "/var/www/html/directory2"> AllowOverride All Options ExecCGI Order allow,deny Allow from all AddHandler cgi-script .cgi .pl </Directory> to the end of the file? Regarding whether to keep everything in the cgi-bin folder, right now I'm at the experimentation stage, so I'm trying to learn how to specify directory permissions on a case by case basis, so I'd still like to learn how to do it, even if I end up taking the AddHandler line(s) out and putting them all in the cgi-bin folder. Regarding where the files are located and their permissions, they are located currently in both the cgi-bin and the html folders, and I have double checked the permissions and they are all 0755.
|