[users@httpd] cgi scripts outside of cgi-bin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux