Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IIS LocalHost Not Working!!!

Status
Not open for further replies.

Guest_imported

New member
Joined
Jan 1, 1970
Messages
0
Hi,

My IIS was working fine and I could access it by typing in " and then suddenly I can't access it by calling it from "localhost". I tried calling it by machine name and it still didn't work.

The error message I'm getting is:

"Server Error
The following error occurred:
Bad URL
"

Does anyone have any idea how to solve this problem.

Thanks very much.
 
That happened to me b4.. but i usually use the nic's IP to access so I never really went to find out what was the problem.

T
 
I could be wrong but.....

in order for localhost to work you need to have a hosts file located in a particular directory in Windows. In XP Pro it's located at "C:\WINDOWS\System32\drivers\etc"

It should look something like this:

# Copyright (c) 1993-1999 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
#
#127.0.0.1 localhost
#Everything above this line is the original file
# localhost: Needs to stay like this to work
127.0.0.1 localhost



I'm pretty sure that this file is on all versions of windows but you might want to do a search on your system and see if it's there. If not, create it and find the correct directory to put it in (do a search on google for this if no one posts it). When creating the file, make sure it does not have and extension on it. ====================================
I love people. They taste just like
chicken!

 
Lck092580, I can access it through my external IP to but I can't configure my software properly because the IP keeps changing and it's a hassle changing the configurations all the time.


Microbe, I checked the log files and they seem to be ok. Below is an output of one of the logs.

#Software: Microsoft Internet Information Services 5.0
#Version: 1.0
#Date: 2002-09-17 16:17:13
#Fields: time c-ip cs-method cs-uri-stem sc-status
16:17:13 66.185.85.68 GET /iisstart.asp 200
16:17:13 66.185.85.68 GET /pagerror.gif 200
16:17:26 66.185.85.68 GET /localstart.aps 404
16:17:30 66.185.85.68 GET /localstart.asp 401
16:17:40 66.185.85.68 GET /localstart.asp 200
16:17:40 66.185.85.68 GET /web.gif 200
16:17:40 66.185.85.68 GET /mmc.gif 200
16:17:41 66.185.85.68 GET /warning.gif 200
16:17:41 66.185.85.68 GET /help.gif 200
16:17:41 66.185.85.68 GET /print.gif 200
16:17:41 66.185.85.68 GET /win2000.gif 200
16:19:25 66.185.85.68 GET /phpMyAdmin/ 302
16:19:25 66.185.85.68 GET /phpMyAdmin/ 200
16:19:29 66.185.85.68 GET /phpMyAdmin/index.php 200
16:19:58 66.185.85.68 GET /phpMyAdmin/index.php 200
16:22:57 66.185.85.68 GET /phpMyAdmin/index.php 200
16:23:00 66.185.85.68 GET /phpMyAdmin/ 200
16:24:06 66.185.85.68 GET /phpMyAdmin/index.php 200
16:26:19 66.185.85.68 GET /phpMyAdmin/index.php 200
16:27:34 66.185.85.68 GET /phpMyAdmin/index.php 200
16:28:42 66.185.85.68 GET /phpMyAdmin/index.php 200
16:28:46 66.185.85.68 GET /phpMyAdmin/images/ 200
16:28:47 66.185.85.68 GET /phpMyAdmin/images/asc_order.gif 200
16:28:51 66.185.85.68 GET /phpMyAdmin/index.php 200
16:29:28 66.185.85.68 GET /phpMyAdmin/index.php 200
16:29:28 66.185.85.68 GET /phpMyAdmin/left.php 200
16:29:30 66.185.85.68 GET /phpMyAdmin/main.php 200
16:32:27 66.185.85.68 GET /phpMyAdmin/ 200
16:32:27 66.185.85.68 GET /localstart.asp 200
16:32:28 66.185.85.68 GET /win2000.gif 304
16:32:28 66.185.85.68 GET /warning.gif 304
16:32:28 66.185.85.68 GET /localstart.aps 404
16:32:30 66.185.85.68 GET /localstart.asp 200
16:32:30 66.185.85.68 GET /web.gif 304
16:32:30 66.185.85.68 GET /win2000.gif 304
16:32:30 66.185.85.68 GET /warning.gif 304
16:32:30 66.185.85.68 GET /mmc.gif 304
16:32:30 66.185.85.68 GET /help.gif 304
16:32:30 66.185.85.68 GET /print.gif 304


This looks normal to me. There are many other logs and what am I looking for to narrow down the problem?


Mithrilhall, I search for the host file and I've under my "C:\WINNT\system32\drivers\etc" directory on my Win2K. I checked the contents and everything the same as you mentioned. I have the "127.0.0.1 localhost" text uncommented out so it should be working but it is not.

This has never happened to me before and I'm baffeled. I've MYSQL and PHP running on the system, and I don't think they could be causing the problem because I uninstalled them and reinstalled IIS and nothing is fixed. So I'm more confused now.

I really appreciate the help you guys are providing me. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top