I need redirect www2
subdomain existent on example.com
(192.0.2.1) to redirect transparently to another server (like example.net
, 192.0.2.2). But I'll access this second server via www2.example.com
. How I can do that?
Currently I tried create the CNAME
and/or A
entries on example.com
like "www2 CNAME example.net"
and www2 A example.net
, and I setup on example.net
this entries too, but it doesn't worked.
EDIT: this is my current setting.
example.com (main server):
www A 192.0.2.1
www2 CNAME parked.example.net
example.net (secondary server): I have two domains configured on this server. I don't know how I need configure it. But basically I have example.com
(the same name of main site) and a parked domain called parked.example.net
. I tried configured this on both, but nothing worked.
www2 A 192.0.2.2
Currently, the www2.example.com
is redirecting to secondary server, but it not handle it correctly to website installed on it, returning a "Sorry" message from cgi if I access it directly, like http://www2.example.com/
. Or returning a "404 Error" (aqua screen) if I access it like http://www2.example.com/index.php
.