Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'CGI's from the user's Sites folder' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
CGI's from the user's Sites folder
Authored by: ericrkl on Jul 19, '01 02:56:14AM

I found this on the MacFixit Forums from CapVideo:

"Add the following to the bottom of your .conf file:

<Directory "/Users/capvideo/Sites/cgi-bin/">
Options ExecCGI
AddHandler cgi-script .cgi
</Directory>

(replacing "capvideo" with your own Unix-level username) "

I experimented a little and changed ".cgi" to "cgi", as in the example from the Apache manual in OS X (under AddHandler).

Also, in my case, I made the "cgi-script" directory "rwxrwxr-x".

I tested an old "send form" perl script and all went well.

Path to original posting:
http://www.macfixitforums.com/php/showthreaded.php?Cat=&Board=Forum38&Number=175809&Search=true&Forum=Forum38&Words=apache&Match=Or&Searchpage=0&Limit=25&Old=allposts&Main=175809

Saludox,
eric



[ Reply to This | # ]
CGI's from the user's Sites folder
Authored by: jasont on Aug 02, '01 04:48:37AM

With the latest 1.0.4 and web update all you do is edit the scriptalias area of your apache configuration file and add this
ScriptAliasMatch ^/~([^/]*)/cgi-bin/(.*) /Users/$1/cgi-bin/$2

Then just place a cgi-bin directory in each users home area.
Still trying to figure out how to make the system autocreate one when I make a new user. Anyone?
-j



[ Reply to This | # ]