Re: Unable to read configuration file within a chroot apach2 setup

Chuck Amadi Systems Administrator <[email protected]>
Newsgroups gmane.comp.web.htdig.general
Organization SMTL
Message-ID <[email protected]>
Hi List

I have tried the following with no success


<div class="smallfont">
 <form action="/cgi-bin/htsearch">
        Search:
          <input type=text name=words size=15>
          <input type=hidden name=method value=and>
          <input type=hidden name=/chroot/httpd/websites/htdig/conf
value=test2.websites
| <A HREF="/Common/advanced-search.html">Advanced search</A>
          </form>



Cheers


On Mon, 2006-03-27 at 15:31 +0100, Mike Causer wrote:
> On Mon, 27 Mar 2006 09:33:29 +0100 Chuck Amadi Systems Administrator <[email protected]> wrote:
> 
> > Unable to read configuration file
> > 
> > I am running a mod_chroot apache 2 environment and I am aware that my
> > Apache 2 Document Root directive is pointing to a specific directory and
> > thus Chroot Dir is thus pointing to my websites where I have my htdig
> > files.
> 
> If you have the config in a different directory to the one that htdig
> was complied for, you /must/ put the name of the config file in the form
> data, even if it is the default name.  For example:
>    <form method="get" action="/cgi-bin/htsearch.sh"
>       <input type="hidden" name="config" value="htdig">
> 
> In this example I have used a wrapper shell script so that the
> non-standard HTBINDIR and CONFIG_DIR are set properly before running
> htsearch, which you might also need to consider.
> 
> 
> Mike
-- 
Unix/ Linux Systems Administrator
Chuck Amadi
The Surgical Material Testing Laboratory (SMTL), 
Princess of Wales Hospital 
Coity Road 
Bridgend, 
United Kingdom, CF31 1RQ.
Email chuck.smtl.co.uk
Tel: +44 1656 752820 
Fax: +44 1656 752830




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.