Link to home
Start Free TrialLog in
Avatar of ellisgolf
ellisgolf

asked on

Mapping Subdomain to ANOTHER Server using IIS

Well I know how simple this would be in Apache.....all I'd have to do is update the DNS A records and it would be done.  However, the company I'm working with uses a Windows/IIS platform.  So here is the situation:

The company I'm working with for a web project owns the domains and currently has their own Windows/IIS server.  I will be providing content for their website using my own PHP code on my own server that only I will have access to.  Therefore I need to redirect traffic from their site to my own web server (currently has it's own static IP).  Here's the kicker - I only need to redirect certain subdomains.....not the main domain.

Example:
http://au.COMPANYSITE.com needs redirected to http://IPADDRESS#1
http://ca.COMPANYSITE.com needs redirected to http://IPADDRESS#2
http://in.COMPANYSITE.com needs redirected to http://IPADDRESS#3

Before jumping to conlusions, I want it so users do not know the re-mapping is taking place.  Therefore, when a user visits http://au.COMPANYSITE.com/folder/aboutus.php the request is actually mapped to http://IPADDRESS#1/folder/aboutus.php ..... but the user's address bar still shows http://au.COMPANYSITE.com/folder/aboutus.php.  Therefore they are oblivious to the transparent mapping.

Now on apache I have found this simple, simple, simple to do.  But I'm pulling my hair out trying to figure out how to do it with Windows/IIS.  Right now I have been given remote desktop access to their Windows 2000 server.  I've looked at everything from individual subdomain properties to the DNS administration program.  The "test changes" I've made have not been successful.  For instance, I tried simply updating the subdomain using the "Home Directory" tab in the properties dialog box.  I changed the option from "A directory located on this computer" to "A redirection to a URL".  Now this did redirect.....but now the user/visitor's address bar showed the IPADDRESS#1.  

Does anyone have some advise for a non Windows/IIS person to make this work correctly?  I appeciate your assistance.  Thanks, everyone!





Avatar of humeniuk
humeniuk
Flag of Canada image

It's still simple to do.  You just use your same DNS solution you suggested off the top, ie. point the A record for each subdomain to the IP address of the server that will contain that website.  It doesn't matter if the destination server is Apache or IIS as long as it is configured to serve that website.
Avatar of ellisgolf
ellisgolf

ASKER

I don't know how to update the A record.  Through the DNS Program in IIS, it does not appear that anything is even being used anyway.  It baffles me.  There are about 40 subdomains setup on the server that work correctly, and also several other domain names.  But none of the records are available in the DNS program from what I can find.
ASKER CERTIFIED SOLUTION
Avatar of humeniuk
humeniuk
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial