pipelineconsulting
asked on
Setting up bindings / redirects on IIS7
I have IIS7 running on my server, along with Exchange. IIS is hosting a Default Web Site, which contains items such as OWA and so on. The bindings on this a just as standard and handle all incoming traffic not handled by the second website I have set up (more on this later).
The server is also part of my local domain, and can be accessed via "server.domain.local" or "domain.local".
In the DNS of my "external" .com domain, I have an A record mail.domain.com. I would like this domain to go straight to OWA, which as mentioned is an application under the default web site. How can I do this?
The second website set up has a number of applications under it. I am currently accessing this through a subdomain (sub.domain.com). The applications are accessed via sub.domain.com/application name.
This website is accessed internally and externally, although for internal access, I am having to enter the .com address. I want to be able to access this website and related applications in the manner of "sub.server.domain.local" or even better "sub.domain.local".
How can I do this? If I access "domain.local " at the moment, I just get the default web site IIS7 page, and visiting sub.domain.local (even with a binding added for the site) I get an error.
The server is also part of my local domain, and can be accessed via "server.domain.local" or "domain.local".
In the DNS of my "external" .com domain, I have an A record mail.domain.com. I would like this domain to go straight to OWA, which as mentioned is an application under the default web site. How can I do this?
The second website set up has a number of applications under it. I am currently accessing this through a subdomain (sub.domain.com). The applications are accessed via sub.domain.com/application
This website is accessed internally and externally, although for internal access, I am having to enter the .com address. I want to be able to access this website and related applications in the manner of "sub.server.domain.local" or even better "sub.domain.local".
How can I do this? If I access "domain.local " at the moment, I just get the default web site IIS7 page, and visiting sub.domain.local (even with a binding added for the site) I get an error.
ASKER
Second question solved nicely - thanks.
For the first, was the advice on the TechNet page for IIS7? I cannot see a "properties" option when right-clicking "Default Web Site", neither can I find a "home directory" tab anywhere.
For the first, was the advice on the TechNet page for IIS7? I cannot see a "properties" option when right-clicking "Default Web Site", neither can I find a "home directory" tab anywhere.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://technet.microsoft.com/en-us/library/aa998359.aspx
You could also use the IIS URL Rewrite Module:
http://learn.iis.net/page.aspx/460/using-url-rewrite-module/
For your second question, you will need to add an internal DNS A record called sub, which will resolve to the internal ip address of your IIS server.
You can test this by pinging sub.domain.local. If DNS is setup correctly it should resolve to the internal IP address of IIS server.