Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've created a domain name and I've changed the DNS to my hosting machine IP.

No problem with that. I host a few web applications on my machine, all under the same IP address. They're all stored as myserver.com/web1, myserver.com/web2, etc.

However, I want http://mynewdomain.com to be redirected to myserver.com/web2 without the user knowing. So that all links with relative paths would show up with the new domain name like http://mynewdomain.com/news would make IIS fetch it from /web2/news.

I hope my question is clear enough. Thanks.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Why don't you just setup the virtual domain configurations correctly on/through your web server?

share|improve this answer
    
Wouldn't I need an unique IP for each web app then? –  raRaRa Jul 30 '11 at 16:21
    
Hey I got it! Thanks :) –  raRaRa Jul 30 '11 at 16:26
    
Good deal... Easy and clean... –  user48838 Jul 30 '11 at 16:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.