LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache 2.0 so many .conf files! (https://www.linuxquestions.org/questions/linux-software-2/apache-2-0-so-many-conf-files-122878/)

lonny 12-05-2003 01:40 AM

Apache 2.0 so many .conf files!
 
I am trying to get cgi scripts to work on apache. The problem is that there are 3 config files and im not really sure which one to edit. There are 3 files httpd2.conf, commonhttpd.conf and httpd2-perl.conf. I ran the test cgi file that came with mandrake and it works fine but mentioned that i have to edit one of the .conf files. But when I write my own cgi script and try to run it in explorer (from the same directory as the test file) it just asks if i want to download the file instead of running the cgi script. Im kinda stuck here and was wondering if anybody had got cgi scripts working on apache 2.0? Thanks.

Guitarzan 12-09-2003 01:15 AM

Sounds to me like you need to edit the commonhttpd.conf file. If you have your cgi script in a directory other than /var/www/cgi-bin then the Apache server won't recognize it (by default) as being a script. If you really need to put the script somewhere other than the default directory, then you will need to edit the commonhttpd.conf file and add a ScriptAlias (you'll find an example one in there) pointing to your cgi-bin directory.

Hope this helps...

KJ


All times are GMT -5. The time now is 12:46 AM.