httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher J. Bottaro" <>
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

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:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message