[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-httpd-users
Subject:    [users@httpd]  cgi scripts outside of cgi-bin
From:       "Christopher J. Bottaro" <cjbottaro () alumni ! cs ! utexas ! edu>
Date:       2005-12-13 20:51:13
Message-ID: dnnbrf$oj5$1 () sea ! gmane ! org
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic