IIS 5 & IIS 6
Different Subdomain should have a dynamic page as a PATH
Last post Nov 17, 2008 05:20 PM by Rovastar
Nov 17, 2008 03:08 PM|DropZite|LINK
I'm trying to make the subdomain work on the server i'm trying to fix..
Here's the scenario right now:
Windows Server 2003
All the sub domains has the same IP address record A ( 77.240.xx.xx ) not real IP
All sub domains are showing the same default page.. So if you access the sub domain in the browser like
http://sub1.domain.com it would show the same page as
But if you access the IP address directly like this
http://77.240.xx.xx:82/localpages/website/display/show.asp?p=1 it would show each website properly..
I hope you're still with me.. What I want to achieve is to point the subdomains to each proper destination. How could I do it properly? I tried configuring and creating new site inside the IIS but I don't think
it allows inputting URL like "http://77.240.xx.xx:82/localpages/website/display/show.asp?p=1" as PATH.
Is there something I'm missing here? What do I need to do?
SUB DOMAIN = PATH
I'm still learning here.. I'll really appreciate it if you could show me how to do it properly or point me to the right path. Thanks!
Nov 17, 2008 05:20 PM|Rovastar|LINK
Each site has to be associated with a default document. AFAIK the default document for any given site cannot contain a query string. So you cannot do in IIS as stated.
What I would do is this.
a) set up another page for each site the emulates the page in question or maybe even a simple redirect to the correct URL and query string combo.
Then have separate default documents for each site. e.g.
both sub1 and sub2 have sepearte websites that both point to the same paths.
b) setup in code a redirect based on the domain in the URL. This is a coding question however and not an admin one and you will need to speak to your devs about it.
Then you have all the subdomains pointing to the same path and file.
For this you will have one website with multiple host headers and with the same default doc path.