Web Hosting Talk







View Full Version : User's cgi-bin directory


virgil
06-12-2002, 02:11 PM
Hi folks.

I am not a host, just trying to set up a pseudo-host on my bsd box. I have set up apache 1.3, php4, and mod_perl and everything seems to be working together. I just want the users to have their own cgi-bin and I searched around the net only found stuff on setting up mod_perl. My guess is I would have to add something to httpd.conf. I can run scripts on apache/cgi-bin but that's not what i really want.

priyadi
06-12-2002, 10:15 PM
I'm not sure I understand your question. But it is very easy to enable CGI scripts for all your users.


AddHandler cgi-script .cgi
<Directory />
Options +ExecCGI
</Directory>

LinuXpert
06-12-2002, 11:09 PM
It's all in the httpd.conf you have to configure the ScriptAlias directory to make all documents in your users' cgi-bin folder are treated as application ran by your server. Smt likes:
ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"
HTHs.

virgil
06-13-2002, 12:17 AM
Okay, I got it now.

Thanks guys.