Redirect to a shared server when the shared server doesn't have nameservers pointed to it.

birwin
birwin used Ask the Experts™
on
I have a client who wants to keep his current webhosting account, and use it for mail and some existing processes, but he wants to redirect his actual web traffic to a shared hosting account on my dedicated server.

The account is set up on the my server, but he doesn't want to point his nameservers to my server.

Since the account on my server does not have nameservers pointing to it, how do I do a redirect on his current server to point to the account on mine? The IP address is shared by dozens of accounts, so I don't believe a redirect of the IP address alone will work. The account was set up on my server using WHM and cPanel but since the nameservers are not pointed to it, it does not resolve.

Any ideas how to do this, or do I have to register a "dummy" domain and point and do the redirect to that "dummy" domain?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2014
Commented:
Well, you could use named based virtual hosting on Apache.

Setup a new domain, setup a host DNS record for it and on the current web server setup the default page to redirect to your host name.

Why does he not want to change www.his-domain.tld to point your webserver IP address?  Or maybe even create www2.his-domain.tld?
Commented:
You could simply redirect the www. host name to your dedicated servers and the base domain as well, or you could implement a 301 redirect.  Both methods will do what you want in the end, the 301 is configurable at his current hosting company.

Author

Commented:
But can a 301 direct be made to my server, when the account on my server doesn't have a nameserver pointed to it?
Top Expert 2014
Commented:
If you host multiple sites on a single IP address you either need a host name and use name based virtual hosting or have some string in a the URI that you pass and then have a script (CGI, PHP, Perl) or JSP page that interprets the URI string and does what you want.

I still don't understand why they don't want their host name pointing to your IP address or even have their DNS entry be a CNAME pointing to a new host name you setup for their pages.
Top Expert 2010
Commented:
If your client has access to the Apache httpd.conf at his existing provider he could set-up a reverse proxy frig to tunnel all traffic to your provider e.g. http://httpd.apache.org/docs/2.0/mod/mod_proxy.html#examples

If not the only real option is to alter or add a DNS to point to your set-up.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial