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

I asked this question (Mapping mvc application to subdomains using IIS 7.5) over on stackoverflow and Amritpal mentioned I should be looking at multi tenancy.

How do I set my 2 applications up to run this?

I have 2 mvc4 applications on the same server running IIS 7.5

Application 1 is the marketing site Application 2 is the business site that I need to be able to configure a wildcard dns allow me to point to something like

www.company1.mydomain.com
www. company2.mydomain.com
etc

I dont want to have to hardcode anything into IIS for each of the hostheaders as I dont want to have to update IIS everytime I get a new customer.

Any suggestions/tips/answers would be really appreciated.

share|improve this question

2 Answers 2

If no SSL is required, I would just add a 2nd IP to host, and create a IIS Web App for each MVC4 app and bind each Web App on it's own IP. Then no host headers are required and you can point your wildcard DNS to the respective IP for each app.

share|improve this answer

To get IIS to respond using the same app pool/website, you should set it up with a blank hostname in IIS Manager.

Once you do this, I would guess you need to do the rest in MVC

share|improve this answer

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.