You sent this message to the htdig-general-admin address, which doesn't really help us post your message to the list. Due to spam concerns, the list does not directly post messages from non-subscribers, but we go through frequently to pull the good messages from the spam.
OK. So you seem to be having some confusion about installation paths. UNIX systems in general have all sorts of directory layouts, and it's hard for a package like ht://Dig to "auto-detect" where things should go. But it tries to allow users to specify paths to appropriate places themselves. Your webserver probably has a directory for CGI programs. It could also assume that anything with the extension .cgi is a CGI, regardless of path (e.g. htsearch.cgi). You'll have to find out what the setup is for your webserver. It's all so varied, that I'm afraid I can't help you any more. Either check your webserver configuration file or look at other working CGI programs on your server. Regardless of where the rest of ht://Dig is installed, htsearch must be executed as a CGI. But you can move that into some other directory--once compiled, it can find the config directory and from that it can find the databases. The default search.html file is an example. It assumes that you've successfully installed htsearch as a CGI program and the URL for it would be /cgi-bin/htsearch. Again, this may vary for your server. Most are configured such that /path/to/cgi-bin -> /cgi-bin/ Then you can either use the search.html file as-is or copy the <FORM> section to your website to fit in with your site design, whatever. Again, it picks a default location, but it's possibly not appropriate for the directory structure on your server (which seems to be the case here). OK, move it into a directory inside your webroot. On Fri, 3 Jan 2003, Robert Isaac wrote: > Following previous comments from Geoff Hutchison and advice from others > about installing htdig to the web site root and security issues it could > cause, I have reinstalled it to the default locations further down the > directory tree. (/opt/www/....). Rundig created the databases OK. Great so > far. I allowed the search.html to be placed in the default location of > /opt/www/htdocs/htdig but how do you access an HTML form from that > location. OK, I placed it in a directory on the web site and accessed it > that way. No security problem with that. I was now back to the same problem > I had over a week ago. In search.html there is: > > <FORM method="POST" action="/cgi-bin/htsearch"> > > and when I hit the 'Search' button I get a message saying 'page cannot be > found', and in the browser address bar was > http://www.volvoclub.org.uk/cgi-bin/htsearch. It was looking in the wrong > cgi-bin directory. It should be going to /opt/www/cgi-bin/htsearch. This is *exactly* what I've been trying to say all along. I don't know what your default CGI directory is. Move htsearch into it if that's how your webserver works. Or move htsearch into your website and make it htsearch.cgi if that works. Traditionally, Apache uses a cgi-bin directory that isn't inside your website. So make sure htsearch is in it. > So I tried something else. I changed the action= to: > > action=http://nc3-0016.web.uk.netscalibur.co.uk/=/opt/www/cgi-bin/htsearch > > but I got a message saying 'Forbidden' I did not have permission to > http://nc3-0016.web.uk.netscalibur.co.uk/=/opt/www/cgi-bin/htsearch > > I changed ownership of htsearch using chown but that made no difference. So > I am back to square one. I have been advised *not* to have htsearch in a > directory on the web site itself. > > The server is a Cobalt RaQ550 with Apache 1.3 and Linux 2.4 OS > (GNU/Linux-i386 (v 2.4.16C12_V)) > > Help...please.. > > Thanks > > Bob > > > VOLVO OWNERS CLUB ONLINE > Robert Isaac, Director, Volvo Owners Club Limited > All email messages are virus scanned before being sent > PLEASE INCLUDE ALL PREVIOUS MESSAGE TEXT WITH REPLY > > Club web site: www.volvoclub.org.uk > > Also visit: www.trisaac.com for > John Wayne Collectors Plates > Roil Products > > -- -Geoff Hutchison Williams Students Online http://wso.williams.edu/ ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ htdig-general mailing list <[EMAIL PROTECTED]> To unsubscribe, send a message to <[EMAIL PROTECTED]> with a subject of unsubscribe FAQ: http://htdig.sourceforge.net/FAQ.html

