[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-developers] CGI directory problems.



-----Original Message-----
From: cobalt-developers-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-developers-admin@xxxxxxxxxxxxxxx]On Behalf Of Dan
Sent: Thursday, January 04, 2001 3:04 PM
To: cobalt-developers@xxxxxxxxxxxxxxx
Subject: [cobalt-developers] CGI directory problems.



Hi,
    I have a RaQ4, and I noticed that whenever I create a "cgi-bin"
directory for a virtual site, I cannot access it through the worl wide web.
I chmoded it to 775, and still my browser tells me the directory does not
exist.  I tried adding 'ScriptAlias /cgi-bin/
/home/sites/somesite/web/cgi-bin/' directives in the <VirtualSite> blocks in
the /etc/httpd/conf/httpd.conf file.  I tried restarting Apache by issuing
the './httpd restart' command from /etc/rc.d/init.d, all to no avail.  If I
create a virtual site and, create cgi-bin and delete index.html I can see it
listed, but clicking on it yields a 'File Not Found' error.  If you want to
see what I mean, goto:

http://errordemo.amray.net

I can execute cgi from other directories, but the particular script I am
trying to implement requires a cgi-bin directoty to exist.

Thanks in advance.

        -Dan

_______________________________________________
cobalt-developers mailing list
cobalt-developers@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-developers

Hi Dan

Had the same issue a couple of weeks ago. I needed to have a cgi-bin so I
could run perl scripts without th .pl and .cgi extensions. The gui will
overwrite the httpd.conf file so you need to work around it.
In the httpd.conf file right below

#<VirtualHost host.some_domain.com>
#ServerAdmin webmaster@xxxxxxxxxxxxxxxxxxxx
#DocumentRoot /www/docs/host.some_domain.com
#ServerName host.some_domain.com
#ErrorLog logs/host.some_domain.com-error_log
#TransferLog logs/host.some_domain.com-access_log
#</VirtualHost>

I added this line (without the brackets)

'Include /etc/httpd/conf/extra.conf'

This won't be overwritten because it is above all the virtual site
directives. Then I created the 'extra.conf' file with the modified virtual
directives. I just copied it from the httpd.conf file and added the
ScriptAlias line you used just above the </Virtual Host>

If it is on a dedicated IP don't forget to add the 'NameVirtualHost
209.xxx.xxx.xxx'at the beginning of the Virtual directive.

Hope this helps...

It worked for me (Thanks to Atif)

Mike Hooper
designcompany@xxxxxxxx