#159 overwriting CONFIG_DIR with multi database

open
nobody
None
5
2003-04-15
2003-04-15
jean
No

hello,

since the new version 3.2.0.16 precompiled in redhat
9,I suppose I cannot overwrite the config directive in
the form :
<input type="hidden" name="config" value="htdig/xxxx">
where the configuration file is /etc/htdig/xxxx.conf

When I launch htsearch for each database nothing
happen except if I use the common file /etc/htdig.conf

netherless thos was working with the previous release

as I would not like recompil the application it will be
nice if you, may be, can show a sample wrapper script
that can overwrite the config_dir in the search.html form

thanks,

Discussion

  • Lachlan Andrew
    Lachlan Andrew
    2003-05-17

    Logged In: YES
    user_id=663373

    I think that this may be the result of a security patch
    (made before I joined the project). Try creating a
    configuration file (a sym-link if you like) in the *same*
    directory as the default directory, and specify the config
    attribute without specifying the directory.

    Please let me know how you get on -- that is just a hunch!

    Lachlan

     
  • Logged In: NO

    I apologize for the mistake I did.

    In fact the config file can be read but the problem seems to
    be with the french dictionnary and the endings dictionnary
    This is good with the entire site (/etc/htdig.conf) but I
    need to comments the line below to work for each
    configuration file

    # tir du guide francisation

    # language files:
    #endings_dictionary: ${common_dir}/francais.0
    #endings_affix_file: ${common_dir}/francais.aff
    #bad_word_list: ${common_dir}/bad_words.fr
    #synonym_dictionary: ${common_dir}/synonyms.fr
    # ----- fin de francisation -----

    So I go on holidays, may be I will look after when I will be
    back

    thanks,

     
  • Neal Richter
    Neal Richter
    2003-10-13

    Logged In: YES
    user_id=624975

    Any update to this? Neal

     
  • Lachlan Andrew
    Lachlan Andrew
    2003-10-14

    Logged In: YES
    user_id=663373

    Sorry for the delay in getting back to you...

    Attributes "endings_dictionary" and "endings_affix_file" are
    not used by htsearch -- only by htfuzzy. Does it work if
    you un-comment these? What happens if you have only one
    line commented out?

    What value does common_dir have in the new .conf file?

    What happens if you run
    htsearch -v "words=yyy;config=xxxx"
    ?

    Thanks for you help in solving this bug,
    Lachlan

     
  • Logged In: YES
    user_id=834844

    you can create your own htsearch script by writing a simple
    script. The name of the script can also be "htsearch". Place it
    under your CGI directory.

    The following code is a sample for my environment
    (www.wanilla.ch). The script set the CONFIG_DIR and calls
    the original htsearch program. My original htsearch is located
    under /usr/local/webcontrol/cgi-sys.

    #!/bin/sh
    CONFIG_DIR=/home/wanillach/htdig/conf/ /usr/local/webcontr
    ol/cgi-sys/htsearch ${@+"$@"}

    Make the script executable under Unix.

    Now put the following HTML-Code in your page.

    <INPUT type="hidden" name="config" value="htdig">

    regards
    tgeberle@wanilla.ch