On Wed, 26 Sep 2001 20:11:10 -0700 (PDT), "Joe R. Jah"
<[EMAIL PROTECTED]> wrote:

>On Thu, 27 Sep 2001, Nick wrote:
[...]
>> ... I've been trying to configure
>> ht://dig to return search results with URLs expressed in terms of the
>> URL the caller supplied when they connected in the first place.
>> 
>> But either I don't understand the required syntax, or you can't use
>> the CGI variable SERVER_NAME as part of the "url_part_aliases"
>> directive in htdig.conf.  
[...]
>> Is what I want possible ?
>> If so, can anyone help me out ?
>
>All you need is relative URLs; however, 3.1.5 has a bug that you need to
>patch against before producing relative URLs; here is the patch:
>
>  ftp://ftp.ccsf.org/htdig-patches/3.1.5/url_part_aliases.0

That worked fine - thanks very much.  BTW, in case it's of interest to
the developers, this success is on Redhat 5.2 on SPARC (a sun4m
SPARCstation 20).

>Do one better and upgrade to 3.1.6 instead;)  here is the latest snapshot:
>
>  http://www.htdig.org/files/snapshots/

Well I downloaded it but haven't tried it yet.  I note that not only
does 3.1.6 contain bug-fixes (==> "better stability") but also the
recent security fix, so I'm paying close attention !

> To use the url_part_aliases attribute you'll need to set up a config
> file for indexing and a separate one for searching.
> 
> htdig.conf:
> url_part_aliases:    http://123.123.123.123/  *1
> 
> htsearch.conf:
> url_part_aliases:    /                        *1

Hmm.  I had seen that advice in the help, but still don't understand
why just one config file and one url_part_aliases directive isn't
enough.  If my original htdig indexing run stores URLs beginning
http://123.123.123.123 in the database, then surely 

  in a single shared htdig.conf:
    url_part_aliases:    /      http://123.123.123.123/

should be enough to get the required relative URL generated by
htsearch ?

I'm grateful anyway for your speedy help.

Nick Boyce
Bristol, UK
--
Peers's Law: The solution to a problem changes the nature of the problem

_______________________________________________
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

Reply via email to