LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   httpd chokes on ScriptAlias line in Apache httpd.conf (https://www.linuxquestions.org/questions/linux-software-2/httpd-chokes-on-scriptalias-line-in-apache-httpd-conf-16449/)

lhoff 03-17-2002 05:25 AM

httpd chokes on ScriptAlias line in Apache httpd.conf
 
I'm trying to point Apache to my cgi-bin directory, but

ScriptAlias /cgi-bin /usr/www/cgi-bin

is causing restarts of httpd to fail with

Syntax error on line 4 of /etc/httpd/conf/httpd.conf
Invalid command 'ScriptAlias', perhaps mis-spelled or defined by a module not included in the server configuration.

Of course, ScriptAlias is not mis-spelled. /etc/httpd/modules has a mod_alias.so and mod_cgi.so. Is there another module that I need?

Thanks!

l-guy 07-14-2003 11:32 PM

The proper ScriptAlias would be this:


ScriptAlias /cgi-bin/ "/usr/www/cgi-bin"


Notice the quotes.


All times are GMT -5. The time now is 08:54 AM.