The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> System Administration
> IIS
|
Nooooobie: Can't get localhost or 127.1.1.0 to work
Discuss Nooooobie: Can't get localhost or 127.1.1.0 to work in the IIS forum on Dev Shed. Nooooobie: Can't get localhost or 127.1.1.0 to work IIS forum discussing Microsoft's Internet Information Server including its configuration, optimization and other related topics. IIS is the most popular web server for the Windows platform.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

January 8th, 2011, 03:18 PM
|
|
Registered User
|
|
Join Date: Jan 2011
Posts: 3
Time spent in forums: 35 m 20 sec
Reputation Power: 0
|
|
|
Nooooobie: Can't get localhost or 127.1.1.0 to work
In Windows 7 Ultimate - installed IIS 7, all admin privileges are set.............but when I type 'localhost' or '127.0.0.1', (even if it's 'localhost\index.htm [the .htm file I created]), I'm taken to some third party search web site........ Interestingly, I have Windows 2003 Server running in VirtualBox VM and that same operation works fine.
I have tried EVERYTHING with no luck whatsoever. Does anyone have any ideas?
Many thanks in advance.
|

January 8th, 2011, 05:22 PM
|
 |
Still alive
|
|
Join Date: Mar 2007
Location: Washington, USA
|
|
A "good" search site? Or something that you might expect from a malware installation? Check your hosts file (system32\drivers\etc\hosts) that it doesn't have any entries in it. As in
Code:
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
and that's all.
I assume you've made sure that IIS and a website is running, right?
|

January 9th, 2011, 04:45 PM
|
|
|
|
Try typing the full url, i.e., http://localhost or http://127.0.0.1 This should eliminate your browser from trying an automatic search, if you still end up at an unknown search site try stopping the IIS service, then try the same localhost url again and see what happens.
__________________
======
Doug G
======
It is a truism of American politics that no man who can win an election deserves to. --Trevanian, from the novel Shibumi
|

January 9th, 2011, 05:40 PM
|
|
Registered User
|
|
Join Date: Jan 2011
Posts: 3
Time spent in forums: 35 m 20 sec
Reputation Power: 0
|
|
Quote: | Originally Posted by Doug G Try typing the full url, i.e., This should eliminate your browser from trying an automatic search, if you still end up at an unknown search site try stopping the IIS service, then try the same localhost url again and see what happens. |
Thanks everyone. Please pardon the newbie question - this is not my background. I have been duly designated as the "IT guy" for our small workgroup here, so have to deal with this. (Ugggghh, I'm dreading setting up Exchange that I have to do....)
Anyway, the fully qualified URL worked (sort of, see below....) now, this is almost embarrasing, but there are NO 'hosts' files on this computer. I did a global search....(Program Files and Program Files (X86) is where the 'Windows NT' folders live, which is where I would assume this folder would reside, but it's not.)
Also, when I do type in the fully qualified URL, I get a 'HTTP Error 401.3 - Unauthorized' error. Somehow I don't have an access to my wwwroot folder? (This is where I place my website folders with the index filethat I am trying to access.) I am an Administrator on this computer and I checked my User Access levels and they are global 'Read/Write". I even set "Sharing' of this folder on. Any ideas?
Again, thanks very much for your help.
|

January 9th, 2011, 05:46 PM
|
 |
Still alive
|
|
Join Date: Mar 2007
Location: Washington, USA
|
|
The hosts file is at
Code:
C:\Windows\system32\drivers\etc\hosts
|

January 9th, 2011, 06:20 PM
|
|
Registered User
|
|
Join Date: Jan 2011
Posts: 3
Time spent in forums: 35 m 20 sec
Reputation Power: 0
|
|
Quote: | Originally Posted by requinix The hosts file is at
Code:
C:\Windows\system32\drivers\etc\hosts
|
Thanks!! My hosts file looks identical to the one you posted in your original reply. I'll figure it out one way or another....thanks again.
|

January 10th, 2011, 03:42 PM
|
|
|
|
I think IIS by default prevents access to files in the root of the web. Better is to make a virtual directory for your site, or some google may find what you need to change to allow file access in the web root.
|

January 28th, 2011, 08:29 PM
|
 |
Who set my Title?
|
|
|
|
Quote:
I am an Administrator on this computer and I checked my User Access levels and they are global 'Read/Write". I even set "Sharing' of this folder on. Any ideas? |
Your being Administrator should not have any effect on the display of the page. The permissions have to be set in IIS like Doug G pointed and not on the file system. Also - no point in sharing the folder.
__________________
Nobody is perfect. I am Nobody.
|

June 4th, 2011, 09:42 PM
|
|
Registered User
|
|
Join Date: Jun 2011
Posts: 1
Time spent in forums: 27 m 15 sec
Reputation Power: 0
|
|
|
The same problem
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|