Bad Request (Invalid Hostname)
Posted by: sreekanth (---.sip.asm.bellsouth.net)
Date: January 20, 2010 09:53PM

Hi all
I installed wamp server in my windows 2003 server. The installation was smooth. After installation i am accessing through the server using [localhost] , it is forwarding to a Bad Request (Invalid Hostname) page. Please help me to configure this.

Thnaks in advance

Sreekanth

Options: ReplyQuote
Re: Bad Request (Invalid Hostname)
Posted by: yfastud (Moderator)
Date: January 21, 2010 12:51AM

open file hosts in folder C:\WINDOWS\System32\drivers\etc and make sure you have only this line and nothing else

127.0.0.1 localhost

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Bad Request (Invalid Hostname)
Posted by: mrudul (---.167.179.122.airtelbroadband.in)
Date: October 15, 2011 08:40AM

Hi,

I am new to PHP and learning to develop web application.

I have installed it wampserver couple of days back and it started to work after few suggestions found through site help by removing Apachephpsql (something) through control panel.

I am using Windows XP.

The good part is the it was working till yesterday evening but the problem started for Bad Request (Invalid Hostname)


Please help me to resolve this issue at the earliest.

Thanks
Mrudul

Options: ReplyQuote
Re: Bad Request (Invalid Hostname)
Posted by: mrudul (---.80.170.122.airtelbroadband.in)
Date: October 16, 2011 10:01AM

Hi,

I have managed to resolve the problem of localhost not working.

I would like to share the steps taken to resolve this issue which might benefit other users:

1. First I checked which application is using Port 80 through WAMP->Apache->Service->Test Port 80.

2. Found that Microsoft HTTPAPI/2.1 is using port 80 on my machine

3. Checked the [griffith.wordpress.com] and found that Web Development Agent Service is running on the machine. [ I am using Windows XP and other users too can find a solution with different Windows version.

4. I disabled "Web Development Agent Service" through Control Panel/Administrative Tools/Services

[You can check the service running on your port 80 and then act accordingly]

5. Started Apache Server

6. Tested Port 80


To my surprise, Port 80 was using Apache

Lastly, I checked localhost which was giving Bad request (Invalid hostname) is NO MORE ...


All the Best and happy using WAMPSERVER.


Thanks,
Mrudul

Options: ReplyQuote
Re: Bad Request (Invalid Hostname)
Posted by: mfm3k (---.owb.bellsouth.net)
Date: January 24, 2012 05:35PM

Thanks Mrudul, had the same problem and resolved in less than a minute thanks to your post.

Options: ReplyQuote
Re: Bad Request (Invalid Hostname)
Posted by: avitaltra (---.red.bezeqint.net)
Date: April 11, 2012 05:13PM

Mrudul,

I can't thank you enough!

You've solved my problem!

Have a long life and prosper! Lots of happiness!

Options: ReplyQuote


Sorry, only registered users may post in this forum.