Jump to content

Recommended Posts

Posted

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.

Posted (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 by SovietRussia
Posted
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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...