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 already have an ASP.NET site running in my Windows Server 2003 (computer name: myserver), so whenever I want to access the site, I would just have to type http://myserver. The issue now is can I host another ASP.NET MVC site on that server 2003 machine? If yes, can I configure the url (http://myserver2?) so that I can access it?

Edit: The Windows Server 2003 is hosting intranet application only. Which is my when they access my original ASP.NET site, they just need to specify http://myserver and that's it.

share|improve this question
add comment

2 Answers 2

Set the host header of your website to myserver. Then create another website in IIS and set the host header to myserver2.

Follow the instructions from http://support.microsoft.com/kb/324287 for more details.

You will need to add myserver2 to DNS to allow access to it, however you can add it to your hosts file for testing.

share|improve this answer
add comment

Do you mean remotely or locally? If remotely, this is typically done through DNS -- so you'd have:

myserver.com     192.168.0.1
myserver2.com    192.168.0.1

This requires IIS to have appropriate host-headers configured for each site so when the incoming requests come in, IIS knows which website it should go to.

Alternately the classic one-site-per-ip-address way is

myserver.com     192.168.0.1
myserver2.com    192.168.0.2

But this becomes onerous and a bit wasteful unless you have hundreds of IPs sitting around doing nothing.

If I am misunderstanding you, and you want to use local only (vs worldwide) names, it's even simpler.

share|improve this answer
add comment

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.