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 

I had a play but no joy I initially had the form value=test2.website

which is what you confirmed to me in your mail.

I tried adding the path to my htdig conf file as this is what i am lead
to believe whats happening but I have set to my test2.website in the
form.

Cheers for you help I only got this to sort out and my new web server
can into testing thus commission phase.

Form setup:

 <form action="/cgi-bin/htsearch">
        Search:
          <input type=text name=words size=15>
          <input type=hidden name=method value=and>
          <input type=hidden name=config value=test2.website>
| <A HREF="/Common/advanced-search.html">Advanced search</A>
          </form>


Thx

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.