http://localhost/ always gives 502 unknown host

Posted by Nitesh Panchal on Server Fault See other posts from Server Fault or by Nitesh Panchal
Published on 2011-06-12T17:49:01Z Indexed on 2012/06/23 9:19 UTC
Read the original article Hit count: 302

Filed under:
|

My service for World Wide Web Publishing Service started successfully but whenever I browse to http://localhost/ I always get 502 Unknown host. Also, wampapache is installed side by side but when I stop IIS service and start wampapache from services.msc I get error and when I view it in System event log I get this error:

- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
  <Provider Name="Service Control Manager" Guid="{555908d1-a6d7-4695-8e1e-26931d2012f4}" EventSourceName="Service Control Manager" /> 
  <EventID Qualifiers="49152">7024</EventID> 
  <Version>0</Version> 
  <Level>2</Level> 
  <Task>0</Task> 
  <Opcode>0</Opcode> 
  <Keywords>0x8080000000000000</Keywords> 
  <TimeCreated SystemTime="2011-06-12T17:43:28.223498400Z" /> 
  <EventRecordID>346799</EventRecordID> 
  <Correlation /> 
  <Execution ProcessID="456" ThreadID="3936" /> 
  <Channel>System</Channel> 
  <Computer>MACHINENAME</Computer> 
  <Security /> 
  </System>
- <EventData>
  <Data Name="param1">wampapache</Data> 
  <Data Name="param2">%%1</Data> 
  </EventData>
  </Event>

I am fed up of this error and it is driving me nuts. I feel like banging my head against the laptop. I am really serious. Without concentrating on my real application I am trying to solve this issue since 3 hours.

I google various threads and few of them said that there could be issue of Reporting Services or Skype. But I have uninstalled Skype and Reporting Services are disabled. What more should I do?

I have hosts file present in etc directory and it does have mapping for localhost to 127.0.0.1. What more could I do?

© Server Fault or respective owner

Related posts about iis7.5

Related posts about wamp