Stuart_C Posted October 4, 2013 Posted October 4, 2013 I've got a website running under IIS and under it 3 actual sites, so basically http://servername/siteA http://servername/siteB http://servername/siteC Now I've creted a DNS alias for it so that people can type in to the URL and finds the server (which has a differnent name) and routes any requests onto the first site so, http://SiteA ==> http://servername/siteA However I want to set up DNS alias's for all the sites (to make it easier for people to remember which site they are going to and get their directly, not via a web page where they choose) and have it route to each site. http://SiteA ==> http://servername/siteA http://SiteB ==> http://servername/siteB http://SiteC ==> http://servername/siteC The DNS is all fine as you just point it at the server, I want to know if it's posasible, and how to, have IIS redirect to a different site based on what url was requested.
SovietRussia Posted October 4, 2013 Posted October 4, 2013 (edited) You can use URL Rewrite to do the request analysing and redirection based on URL (Add a new rule) (Reverse Proxy) (Set the inbound request IP - So the server to receive the requests) (Click okay) (Double click on the Rule and change the pattern) Edited October 4, 2013 by SovietRussia
themightymrp Posted October 4, 2013 Posted October 4, 2013 I think you need to be looking at web site host headers in the IIS. Take a nosey over at this page: Adding a host header to IIS
Stuart_C Posted October 4, 2013 Author Posted October 4, 2013 You can use URL Rewrite to do the request analysing and redirection based on URL (Add a new rule) (Reverse Proxy) (Set the inbound request IP - So the server to receive the requests) (Click okay) (Double click on the Rule and change the pattern) Just tried this module but adding blank rules as everything is on the same machine. Didn't seem to work despite it working when using the test feature. Not tried the reverse proxy bit as it required stuff to be installed.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now