localhost redirection

Hello All,

I installed IIS for my home computer and everything is okay. I got to
know that http://computername redirects to http://localhost. But i
was just wandering if let's say instead of typing http://localhost can
i type http://projectname and get it to redirect it to http://localhost.
I'm on a WINXP SP2 PRO on IIS 5.1

Regards,
SpElLuBlInD
spellublind [ Fr, 28 Dezember 2007 10:07 ] [ ID #1895116 ]

Re: localhost redirection

<spellublind [at] gmail.com> wrote in message
news:28dcc22e-385a-4dd4-9fb0-73b148c6e39c [at] e23g2000prf.google groups.com...
> Hello All,
>
> I installed IIS for my home computer and everything is okay. I got to
> know that http://computername redirects to http://localhost. But i
> was just wandering if let's say instead of typing http://localhost can
> i type http://projectname and get it to redirect it to http://localhost.
> I'm on a WINXP SP2 PRO on IIS 5.1
>

Open in notepad the file:-

\windows\system32\drivers\etc\HOSTS

(note no file extension)

add this line:-

127.0.0.1 projectname

If you are developing for uploading to a public address then you could do
something like this also:-

127.0.0.1 projectname.domain.com

This is preferable for testing purposes

--
Anthony Jones - MVP ASP/ASP.NET
Anthony Jones [ Fr, 28 Dezember 2007 12:17 ] [ ID #1895123 ]

Re: localhost redirection

On Dec 28, 4:17=A0pm, "Anthony Jones" <A... [at] yadayadayada.com> wrote:
> <spellubl... [at] gmail.com> wrote in message
>
> news:28dcc22e-385a-4dd4-9fb0-73b148c6e39c [at] e23g2000prf.google groups.com...
>
> > Hello All,
>
> > I installed IIS for my home computer and everything is okay. I got to
> > know thathttp://computernameredirects tohttp://localhost. But i
> > was just wandering if let's say instead of typinghttp://localhostcan
> > i typehttp://projectnameand get it to redirect it tohttp://localhost.
> > I'm on a =A0WINXP SP2 PRO on IIS 5.1
>
> Open in notepad the file:-
>
> \windows\system32\drivers\etc\HOSTS
>
> (note no file extension)
>
> add this line:-
>
> 127.0.0.1 =A0 =A0projectname
>
> If you are developing for uploading to a public address then you could do
> something like this also:-
>
> 127.0.0.1 =A0 =A0projectname.domain.com
>
> This is preferable for testing purposes
>
> --
> Anthony Jones - MVP ASP/ASP.NET

Wow!!!
Thanks a lot Anthony, that was terrific.
spellublind [ Fr, 28 Dezember 2007 15:59 ] [ ID #1895129 ]
Webserver » microsoft.public.inetserver.iis » localhost redirection

Vorheriges Thema: IIS + PHP -- Worker Process alert & w3wp.exe crash?
Nächstes Thema: Ligne de commande AspNet sur IIS