Re: htdig: server aliases...


Alexander Bergolth (leo@strike.wu-wien.ac.at)
Mon, 23 Nov 1998 21:44:45 +0100


Hi!

At 17:02 23.11.98 , you wrote:
>If I got an alias for http://foo.bar.com <http://foo.bar.com> that links to
>the same computer than http://my.other.com <http://my.other.com> , does that
>mean that BOTH of them should be in my limit_urls_to string?
>
>(both of them are there for now)
>
>I also got this line in my conf file:
>
>Server_aliases: http://foo.bar.com=http://my.other.com
><http://foo.bar.com=http://my.other.com>

If both were in the same domain (e.g. server_aliases:
http://foo.bar.com=http://www.bar.com), it would be easier to
limit_urls_to: .bar.com
and limit_normalized: http://www.bar.com

But in your case it is better to add both names to your limit_urls_to string.

(If you limit_urls_to: .com to let both names through the first check and
limit_normalized to http://my.other.com, every external link that points to
*.com is normalized and therefore many DNS lookups will be done.)

>And when I run the diggin program, there's nothing telling me that it
>understood the alias. In the log it says:
>"New server: my.other.com, 80"
>and that's it.
>
>Why isn't replacing "my.other.com" by "foo.bar.com" ?!?!?

It works the other way around: server_aliases replaces http://foo.bar.com
with http://my.other.com.
So your start_url should be http://my.other.com.

Hope that helps,
                  Leo

-----------------------------------------------------------------------
Alexander (Leo) Bergolth leo@leo.wu-wien.ac.at
WU-Wien - Zentrum fuer Informatikdienste http://leo.wu-wien.ac.at
Info Center
In a world without walls and fences, who needs windows and gates?

----------------------------------------------------------------------
To unsubscribe from the htdig mailing list, send a message to
htdig-request@sdsu.edu containing the single word "unsubscribe" in
the body of the message.



This archive was generated by hypermail 2.0b3 on Sat Jan 02 1999 - 16:28:51 PST