On Thu, 27 Sep 2001 13:18:24 -0500 (CDT), Gilles Detillieux
<[EMAIL PROTECTED]> wrote:
>According to Nick:
>> I've been trying :
>>
>> url_part_aliases: $(SERVER_NAME) 123.123.123.123
>>
>> and variations on the variable name syntax, such as ${SERVER_NAME},
>> $&(SERVER_NAME), $%(SERVER_NAME), etc. Some of these "work" but give
>> search result URLs like
>>
>> http://(SERVER_NAME)/mypath/mydoc.html
>
>The last two forms above only apply to template variables in your
>htsearch template files, and not to attributes in your config file.
>Also, you can get at environment variables from within templates, but
>not within config files. The latter has been proposed, but we still
>need to work out the security implications of this, and find a suitable
>syntax for it.
Thanks - that makes it very clear - I was wondering whether I was
misunderstanding the help pages on what kinds of substitution are
allowed where.
>Your best bet is to go with Joe's suggestion of using relative URLs
>with the 3.1.6 snapshot.
Did that (but with the 3.1.5 patch - see previous message). It works
fine, and I'm very happy with it, so thanks to you both.
I have one pales-into-insignificance cosmetic comment : the appearance
of the *displayed* search result URLs I'm now getting is (just my 2p)
not quite as complete ("slick" ?) looking :
Kumquat Harvest Reports, 1994
/reports/harvests/kumquat-1994.html, ....
as it would be if the URL included the server name :
Kumquat Harvest Reports, 1994
http://www.ourserver.org/reports/harvests/kumquat-1994.html, ....
like it does with ht://dig out of the box.
I realise this is subjective, and hardly important.
Again, thanks very much for yours and Joe's help.
Nick Boyce
Bristol, UK
--
" ...screams erupted at a Seattle hotel where Microsoft founder Bill Gates
was addressing an education and technology conference. (...)"
-- cnn.com, Reportage �ber das Erdbeben in Seattle
_______________________________________________
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