The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OT] IIS, domains, routers and host headers



Paul Gale wrote:
>If possible I'd prefer to keep ports to 80. How do host headers work?

Hi Paul,

Host headers (in IIS assigned by going properties on the web site in IIS
management, choosing advanced beside IP Address, choosing add, and
putting in the host header name. You can then run multiple port 80 web
sites (new web site from a right click on server/web sites in IIS
management) and give them a different host header name.

You can then muck around with DNS, or with your local hosts file,
whichever you're more comfortable with.

Basically what I'd do for simplicity (!) is make several websites, eg
ClientSite1, ClientSite2, ClientSite3 in IIS, giving the sites the same
IP address and port, but host headers of ClientSite1, ClientSite2,
ClientSite3. I'd then go into the hosts file on the client/ dev machine
(c:\winnt\system32\drivers\etc\hosts) and add a static resolve in there for

192.168.0.10	ClientSite1
192.168.0.10	ClientSite2
192.168.0.10	ClientSite3

So on your client/ dev PC, you'd go http://ClientSite1 which your PC
would resolve to 192.168.0.10 which would then hit your IIS server which
would then look at the ClientSite1 host header and pick the ClientSite1
website to serve.

If that has confused the hell out of you, then it's probably something
to do with Friday afternoons :D


--
Doogie





Home | Main Index | Thread Index

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.