On Jan 25, 2008 7:21 PM, Voytek Eymont <[EMAIL PROTECTED]> wrote:
> how can I divert web/domain to a foreign server that I have no control over ?
>
> I have a domain.org.au, the web server pages for the domain now needs to
> be served from anotherdomain.com on a remote server
>
> I've tried to set a CNAME
> www CNAME anotherdomain.com
>
> but that serves blank page, I suspect, the page request arrives as
> 'domain.org.au' and the remote server expects 'anotherdomain.com' ?

There are actually a number of ways to do this, but it depends what
behaviour you want from the client and how much access you have to the
server.

An HTTP or Meta redirect will change the URL shown in the address bar,
so the user will know they have been moved to anotherdomain.com.
If you use an invisible frame, users will see the original URL at all
times (even if they navigate to a different location, which may be
undesirable).
Using a more complex method (mod_proxy), you can make the remote site
transparently appear to be on the local site.

All those methods except for mod_proxy are explained in more detail
here: http://en.wikipedia.org/wiki/URL_redirection#Techniques
the relevant section of mod_proxy's documentation:
http://httpd.apache.org/docs/2.0/mod/mod_proxy.html#proxypassreverse

Sam
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to