Click here to Skip to main content
15,892,697 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
See more:
Hi,

I am just starting to use the new IIS7 console on Windows 7 for the first time, and I have to admit to being somewhat overwhelmed by the apparent complexity of it all. I realise that I need to simply do the work and start reading, but one feature I have a particular need to investigate promptly is its ability to run multiple websites.

I have a website that is actually several websites (with different domain names) which link to each other. Setting this up on my live website provider is no problem, but what I need is to try to replicate, as closely as possible, the same behaviour on my local network.

I have an Windows7/IIS7 machine with a single IP on my local network. Is it possible to get this to run multiple websites simultaneously and have these accessible by some form of URL? This last bit is the problem actually. I don't mind if I even have to use raw IPV4 addresses and port numbers but how do I get access to pages in 2 different websites on the same machine from another machine on my network?

Sorry for the length of the post, bit difficult to explain what I need to do. Any pointers to information on this would be very gratefully received.


Best wishes,
Patrick
Posted
Updated 14-May-11 0:09am
v2

1 solution

I am not sure what you mean when you say the single site is actually multiple sites, but am assuming that they are subdomains(?). You could try setting up a web site in IIS and creating different virtual folders underneath it, linking the virtual folders to the different subdomains. After that you can access the different sites by having the specific domain name(virtual folder) in the URL.
 
Share this answer
 
Comments
Patrick Skelton 16-May-11 6:49am    
Hi, Mark,

Thanks for the reply.

Yes, I do mean that there is a main website and there are sub-domains, which can also be accessed directly via a different main URL.

I have managed to set up something that will suffice for testing, which follows your suggestion.


Best wishes, Patrick

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900