Torsten Neuer (firstname.lastname@example.org)
Thu, 24 Jun 1999 12:30:50 +0200
According to email@example.com:
>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?
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
-- InWise - Wirtschaftlich-Wissenschaftlicher Internet Service GmbH Waldhofstraße 14 Tel: +49-4101-403605 D-25474 Ellerbek Fax: +49-4101-403606 E-Mail: firstname.lastname@example.org Internet: http://www.inwise.de
------------------------------------ To unsubscribe from the htdig mailing list, send a message to email@example.com containing the single word "unsubscribe" in the SUBJECT of the message.
This archive was generated by hypermail 2.0b3 on Thu Jun 24 1999 - 03:00:46 PDT