localhost.com is a domain on the internet belonging to Matthew Seidl. If you navigate to that url it should not hit your machine, but should go out and try to retrieve the site on the web.
I know its a domain on the web, but I thought that the hosts file was always checked first before anything else and thus it would be possible to create a
www.localhost.com that points to my machine...
If not...how can I still achieve this?
please mark answers as 'Answered' and post back solutions when you figure stuff out that isnt in the post already.
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
though.
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.
Peter Smith
Contributor
4605 Points
2109 Posts
http://www.localhost.com
Mar 19, 2007 10:19 PM|LINK
In my hosts file I entered the following:
127.0.0.1 localhost
127.0.0.1 http://www.localhost.com/
But that doesnt seem to work...how can I get this to work...
I would even be glad when I could type: http://www.anyname.com
thanks!
Liming
Contributor
5367 Points
1076 Posts
Re: http://www.localhost.com
Mar 19, 2007 10:45 PM|LINK
Jumptree ASP.NET 2.0 Project Management, Bug Tracking & Task Management - Encourages collaboration, provides transparency and comes with metrics.
JQuery Gantt, JQuery Calendar, SiteMinder/AD Authentication, Customizable Languages, Custom Fields, Lucene.Net Search, and more
Peter Smith
Contributor
4605 Points
2109 Posts
Re: http://www.localhost.com
Mar 19, 2007 10:53 PM|LINK
I need for testing purposes to type www.myname.com....
Mr^B
Star
12726 Points
2245 Posts
Re: http://www.localhost.com
Mar 19, 2007 10:58 PM|LINK
If it's in the hosts file but not working, try and flush the dnscache
Start -> Run -> Cmd
ipconfig /flushdns
...and try pinging "www.localhost.com" - once it starts pinging to 127.0.0.1 you're good to go.
Peter Smith
Contributor
4605 Points
2109 Posts
Re: http://www.localhost.com
Mar 19, 2007 11:11 PM|LINK
pinging www.localhost.com [10.11.12.13] with 32 bytes of data
Any suggestions?
mtalcott
Member
455 Points
87 Posts
Re: http://www.localhost.com
Mar 19, 2007 11:43 PM|LINK
ASP.Net Host
HeadTreez.com
Please mark as Answer if this helps you.
Peter Smith
Contributor
4605 Points
2109 Posts
Re: http://www.localhost.com
Mar 19, 2007 11:50 PM|LINK
If not...how can I still achieve this?
mtalcott
Member
455 Points
87 Posts
Re: http://www.localhost.com
Mar 20, 2007 12:35 AM|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 though.
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.
ASP.Net Host
HeadTreez.com
Please mark as Answer if this helps you.
Mr^B
Star
12726 Points
2245 Posts
Re: http://www.localhost.com
Mar 20, 2007 06:35 AM|LINK
The entry in the hosts file should be:
127.0.0.1 www.localhost.com
(without the initial http://)
Peter Smith
Contributor
4605 Points
2109 Posts
Re: http://www.localhost.com
Mar 20, 2007 08:50 AM|LINK