httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher J. Bottaro" <cjbott...@alumni.cs.utexas.edu>
Subject [users@httpd] cgi scripts outside of cgi-bin
Date Tue, 13 Dec 2005 21:09:51 GMT
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message