Reputation: 301
i am running iis7. the web site has 2 unique applications each in its own folder structure and each installed as an application in iis.
the server has 2 ip addresses associated with it. in iis6 on the application property page all you had to do was specify an ip address and that address would automatically route you to the associated application.
this feature has either been removed or well hidden in iis7. so the question i have is, how do you associate a specific ip address with a specific iis application in iis7.
urlrewrite doesn't seem to cover this case but then again its 3 in the morning...
we are associated ip addresses with specific applications because long term the transaction volume associated with each application will dictate using its own server. \
Upvotes: 0
Views: 916
Reputation: 563
Right click on the web app and go to Edit Bindings.. you set the IP and/or hostname bindings there, they've also moved binding a certificate to an IP there too
edit after discussion:
If you need to bind applications to different IPs and/or hostnames then you need to set them up as seperate website applications. This can be done by right-clicking Sites
and selecting Add Website
You can remove or stop the Default Website Application once you've configured your applications.
For further information, the reason you can add application within a Website is so that you can have say, a blog in a subdirectory eg www.somewebsite.com/blog
where the main website is one app and the blog is another. Could even be a wordpress where the main website is asp.net
Upvotes: 1
Reputation: 10198
Open iis7 -->> Right Click Site
-->> select Add Website
-->>
here you can set ip address,port,physical path
of your app(ie in wwwroot) and hostname
.
Upvotes: 1