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
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
ht://Dig general mailing list: <[email protected]>
ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-general