Hi,
I have Windows 2000 Pro and IIS 5.0

I configured it so that http://localhost points to c:\web,
and I can use http://localhost/app1/index.html to call
c:\web\app1\index.html

It works great, but is it possible to make something like this:
http://app1.localhost/index.html

If yes then how to create the local subdomain "app1"?
I have no idea at this moment, but I really need this.

Thank you in advance.

mark

Re: [newbie] Local virtual subdomain? by jeff

jeff
Wed Jan 05 14:59:03 CST 2005

On Wed, 5 Jan 2005 16:48:12 +0100, "mark" <mark_74@nospam.op.pl>
wrote:

>Hi,
>I have Windows 2000 Pro and IIS 5.0
>
>I configured it so that http://localhost points to c:\web,
>and I can use http://localhost/app1/index.html to call
>c:\web\app1\index.html
>
>It works great, but is it possible to make something like this:
>http://app1.localhost/index.html
>
>If yes then how to create the local subdomain "app1"?
>I have no idea at this moment, but I really need this.

You can't. "localhost" is a special host name for the system you're
physically at, not a fully qualified domain name. You can add a
subdomain to a domain in DNS, but not to "localhost".

Jeff

Re: [newbie] Local virtual subdomain? by Kristofer

Kristofer
Thu Jan 06 02:46:56 CST 2005

Hello Mark,

IIS 5.0 on Windows 2000 Pro cannot run multiple websites (my understanding
is that you want to have app1.localhost and app2.localhost for the next
web applications).

To point app1.localhost to your local server, you can modify the lmhosts
file. Information about this file can be found in the file, and also here:

http://support.microsoft.com/default.aspx?scid=kb;en-us;314884

Note however that this will work only on your machine, remote machines
will not work.

--
Regards,
Kristofer Gafvert
www.ilopia.com

mark wrote:

> Hi,
> I have Windows 2000 Pro and IIS 5.0
>
> I configured it so that http://localhost points to c:\web,
> and I can use http://localhost/app1/index.html to call
> c:\web\app1\index.html
>
> It works great, but is it possible to make something like this:
> http://app1.localhost/index.html
>
> If yes then how to create the local subdomain "app1"?
> I have no idea at this moment, but I really need this.
>
> Thank you in advance.
>
> mark