Forum Moderators: phranque

Message Too Old, No Replies

How to host multiple sites (as wwwroot) in IIS

How to host multiple website in IIS

         

ScaryCabbage

12:33 am on Apr 16, 2009 (gmt 0)

10+ Year Member



Hi Guys,

I want to host multiple websites on a windows VDS (Virtual Dedicated Server), as if though they were all root (i.e. c:\inetpub\wwwroot).

I have ~ 6 clients hosted with different web hosts and I want to consolidate them onto a single VDS (long story, but I want to move away from shared hosting).

Note : when I developed these websites locally, I used c:\inetpub\wwwroot\ (i.e. the default root folder for Windows)....I also use virtual links, e.g. src="/images/banner.jpg"....I never use relative links, e.g. src="..\images\banner.jpg"

Now here's my dilemma ---> how do I host these multiple websites on the one server, taking into account that each was developed as root (i.e. c:\inetpub\wwwroot)?

Regards
George

[edited by: phranque at 10:47 pm (utc) on April 16, 2009]
[edit reason] removed hosting specifics [/edit]

maximillianos

1:13 pm on Apr 16, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Their absolute directory location is not relevant. IIS allows you to configure as many websites as you like and point each to their own "root" directory. So as long as you move them each into their own unique folder, IIS can be configured to recognize each as their own website.

For example, put each into the following directory structure:

c:/wwwroot1/
c:/wwwroot2/
c:/wwwroot3/
etc

Then you simply point each website configuration in IIS to the respective directory.

Hope this makes sense.