[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-developers] Dynamically mirroring website



On Friday 08 March 2002 05:34 pm, you wrote:
> I am running a RaQ3 with multiple virtual domains hosted
> on a single IP address.  I am trying to get two domains
> to be identical, without rewriting the hostname URL.
>
> User requests http://www.domain.com/foo.html
> or user requests http://www.domain.co.uk/foo.html
>
> I want both requests to return the exact same page from
> my webserver (both domain names are hosted on the same
> box and IP address).  Also I want the clicks on all relative
> links to maintain the original hostname that they were
> requested from (e.g., the UK user thinks they are still
> in the UK as they click around the website).
>

May not be the best way,
Try creating a <VirtualHost> container for the alias site
You can create a site for the alias (or use an include file)
make the DocumentRoot same as the main site.
if you create the dummy site you don't need to do the following.
modify the usual rewrite rules to maintain the alias site.

Something like the above should work, may need some tweeking.
--
Gerald Waugh