According to [EMAIL PROTECTED]:
>Hi,
>
>I have a number of virtual servers on my webserver.
>
>Two of them are edoc.co.za and www.edoc.co.za
>
>They are defined as local domains, and have the same IP-number.
>
>I added the line
>
> server_aliases: www.edoc.co.za=edoc.co.za
>
>But still get the same document indexed twice eg
>
>www.edoc.co.za/abc.html and edoc.co.za/abc.html will both be
>listed if retrieved by a search.
>
>What am I doing wrong?
See http://www.htdig.org/attrs.html#server_aliases
The server_aliases directive is *not* for virtual hosts!
Also have a look at http://www.htdig.org/attrs.html#allow_virtual_hosts
and make sure that you have the correct setting for allow_virtual_hosts.
If you have access to your server configuration file, the best
thing you can probably do is to permanently redirect one virtual
host to the other. This will also allow other search engines on
the web to function properly. So if you got an Apache server,
simply add the line
RedirectMatch permanent (.*)$ http://www.edoc.co.za$1
to the configuration for the virtual host edoc.co.za
hth,
Torsten
--
InWise - Wirtschaftlich-Wissenschaftlicher Internet Service GmbH
Waldhofstraße 14 Tel: +49-4101-403605
D-25474 Ellerbek Fax: +49-4101-403606
E-Mail: [EMAIL PROTECTED] Internet: http://www.inwise.de
------------------------------------
To unsubscribe from the htdig mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the SUBJECT of the message.