LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Cgi help please (https://www.linuxquestions.org/questions/linux-software-2/cgi-help-please-103259/)

Drogo 10-12-2003 09:38 PM

Cgi help please
 
i running redhat 9 and i setup the vhosts and thats working fine , but i cant get the cgi to work for the users...


ScriptAlias /cgi-bin/ /home/*/cgi-bin/


the script alias doesnt seem to work for me. :scratch:

help , can someone paste a good working example from there httpd.conf virtual hosts ..

hw-tph 10-13-2003 01:27 AM

Quote:

ScriptAlias /cgi-bin/ /home/*/cgi-bin/
Think about it. You try to have the virtual directory /cgi-bin (www.blah.com/cgi-bin) to be linked to.....everyone's cgi-bin dirs. :)

You probably want something like this:

Code:

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

<Directory /usr/lib/cgi-bin/>
    AllowOverride None
    Options ExecCGI
    Order allow,deny
    Allow from all
</Directory>

This will allow you to access and execute cgi binaries in a dir that looks like it's directly under the document root of the web server.

Then you could have a <Directory /home/*/public_html/cgi-bin> entry for users' personal cgi directories.

hw


All times are GMT -5. The time now is 11:13 PM.