Danny wrote:
> Hi all,
>
> Say that I have two domain-names x.com and y.com, and one physical
> server with a fixed IP.
>
> Is it possible to set the x.com clients to be directed to virtual
> directory c:\inetpub\wwwroot\x and y.com clients to virtual directory
> c:\inetpub\wwwroot\y ?
>
> Using Win server 2003 and IIS 6.
>
> Thanks,
> Danny
>
Yes.
Fire up IIS admin. You can create as many web sites as you like. Each
can have any folder anywhere. If this is a commercial server, the very
first thing I'd do is DISABLE and DELETE the default site. It's a
security risk.
On our server we have a RAID mapped to e:\ that contains all of our
sites in subfolders. On our main server, that's about 30 sites. In IIS,
there are 30 web sites defined, all pointing at folders on e:\, and
split between a couple of IPs. The way IIS resolves sites to folders is
via the HTTP header information. You can see this information by
right-clicking your web site name, choose properties, and in the Web
Site tab of the dialog click Advanced. In here you can add as many web
site domain names as you like*, against whatever IP addresses IIS
detects are available.
* of course, the names need to be registered, and your Name Server must
have the IP address of your server.
This is a little complicated I guess if you've never used IIS before. I
have a document I wrote describing all of this that I wrote for our
support teams - I could publish it online on Thursday if you like. It
pretty much covers all of this, plus how to get Perl, PHP and MySQL
working perfectly with IIS too.
--
x theSpaceGirl (miranda)
http://www.northleithmill.com
-.-
Kammy has a new home:
http://www.bitesizedjapan.com