-1

I have an EC2 instance with apache running. The instance has a public IP. If I call the page with the IP es: curl http://xx.xx.xx.xxx I get the right page, index.html. If I call with url: curl http://my.example.com I get

HTTP/1.1 400 Bad Request
Your browser sent a request that this server could not understand

my.example.com point to the right IP if I ping it.

I really don't understand what can be wrong.

3
  • 1
    It'd be helpful if you shared the IP and domain name, but some people perceive a risk there - there's little risk really. Please also edit your question to include the relevant part of your web server configuration and the relevant part of the web server access / error logs
    – Tim
    Nov 3 '17 at 22:49
  • 1
    Checkl the Apache configuration. Nov 4 '17 at 6:20
  • I didn't include more details about Apache config because I thought they were not relevant, since I thought about a network problem. When I looked logs and configuration, I understood. So, thx for your useful comments and yes, it was useful to post the question here in that way, notwithstanding the down vote
    – Glasnhost
    Nov 5 '17 at 10:19
0

HttpProtocolOptions was set by default to strict and I had an underscore in my vhost.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.