Last post Mar 22, 2007 08:56 PM by mtalcott
Mar 19, 2007 11:19 PM|Peter Smith|LINK
Mar 19, 2007 11:45 PM|Liming|LINK
Mar 19, 2007 11:53 PM|Peter Smith|LINK
Mar 19, 2007 11:58 PM|Mr^B|LINK
If it's in the hosts file but not working, try and flush the dnscache
Start -> Run -> Cmd
...and try pinging "www.localhost.com" - once it starts pinging to 127.0.0.1 you're good to go.
Mar 20, 2007 12:11 AM|Peter Smith|LINK
Mar 20, 2007 12:43 AM|mtalcott|LINK
Mar 20, 2007 12:50 AM|Peter Smith|LINK
Mar 20, 2007 01:35 AM|mtalcott|LINK
Hmm, I learn something new everyday.
I had never used the host file so I just tested it and by adding a line (127.0.0.1
www.localhost.com), it does seem to work, however I have a different problem. I get prompted with a login box, and I get denied access even when using my admin account. The ping does show that it is hitting 127.0.0.1
Sorry that's not much help. You may get some success at
http://forums.iis.net/ with this if you don't get it here.
Mar 20, 2007 07:35 AM|Mr^B|LINK
The entry in the hosts file should be:
(without the initial http://)
Mar 20, 2007 09:50 AM|Peter Smith|LINK
Mar 20, 2007 05:08 PM|UncleB|LINK
try using the actual IP address in the host file - not 127.0.0.1
to avoid confusion, you could make it something like www.mywebserver.com
Mar 20, 2007 05:57 PM|Mr^B|LINK
Mar 20, 2007 06:38 PM|Peter Smith|LINK
Mar 20, 2007 07:00 PM|Peter Smith|LINK
Okay, something went wrong...again:
Here's my hosts file:
When I ping www.mywebserver.com I get an answer from 192.168.0.170 ...so thats correct.
In my browser when I type 192.168.0.170\default.aspx I get a login screen, type my admin name and pwd and it ALSO works..
When I type in my browser: www.mywebserver.com I get a login screen, I type in my admin name and pwd check the remember my password and press ok.
then the screen pops up again, but without the remember mu password box checked...I hold enter for a while and the screen appears and disappears some time. In the end my webpage is shown: but images, stylesheets all dont work, so its a giantic mess.
in IIS under directory security I've enabled Anonymous access for the IUSR_DESKTOP username...
What am I doing wrong?
Mar 20, 2007 10:41 PM|Mr^B|LINK
Clear out any cookies that you have set - chances are a spurious one for www.mywebserver.com is in there somehow.
Also check the host headers on the site, make sure they are set up correctly (should have the www.mywebserver.com in there as a host header on port 80).
Mar 21, 2007 01:50 AM|UncleB|LINK
IIS 5 user is ASPNET
IIS 6 its NT AUTHORITY\NETWORK SERVICE
maybe that helps...
Mar 22, 2007 08:56 PM|mtalcott|LINK
Peter, Did you ever get this working. I'd like to use this too, but I can't get past the Windows login that won't even accept an admin account. I had set the site to allow anonymous, but that didn't help either.