I can't for the life of me figure out how to get cgi scripts to work outside
of the cgi-bin dir.  I'm trying to allow files ending in .cgi to be
executed from the users dir.

Here is how I changed my httpd.conf:

<Directory /home/*/public_html>
    Options +ExecCGI
    AddHandler cgi-script .cgi
</Directory>

My script:

$ ls -l test.cgi
-rwxrwxr-x  1 sti sti 83 Dec 13 14:27 test.cgi

$ cat test.cgi
#!/usr/bin/env python

print "Content-Type: text/html\n\n"
print "Hello cgi world"



The exact same script works if I put it in Apache's cgi-bin dir.  Any ideas? 
I'm using Apache-2.0.54. Thanks for the help.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to