From: Mark G. <dg...@to...> - 2006-08-22 01:21:05
|
Mark Grieveson wrote: > Jim wrote: >> On Mon, 21 Aug 2006, Mark Grieveson wrote: >> >> >>> Thanks for your response. Yes, I suspect that something is wrong >>> with the Apache set up, in that it cannot properly execute cgi-bin >>> scripts. I'm not sure how to rectify this, though. I did try >>> htsearch from the terminal, and it works there. But it does not >>> work from the website. >>> >> >> Do you have a ScriptAlias directive setup for the directory containing >> the htsearch CGI? Something like >> ScriptAlias /cgi-bin/ /path/to/cgi-bin/ >> >> >> Jim >> > Thanks for the response. No. I checked /etc/apache2/apache2.conf, and > could find no such entry. I did find a file entitled cgi.load, in > /etc/apache2/modules-enabled directory, and this file reads: > "LoadModule cgi_module /usr/lib/apache2/modules/mod_cgi.so". The file > mod_cgi.so exists. > > I also checked the htdig.conf file, and, likewise, found no such > entry. Do you know where I should put such an entry? > > Mark > Okay, thanks for your great suggestion. I did find out where the entry needed to go. I had set up a virtual host, just in case I wanted to serve other sites from here. However, I had not properly added support for cgi-bin files to this host. I noticed this when checking the /etc/apache2/sites-enabled/000-default file. I simply added: ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> and it now works. Thanks again. Mark |