Forum Discussion

Alejandro_3444's avatar
Alejandro_3444
Icon for Nimbostratus rankNimbostratus
Jan 20, 2012

Error 400 Bad request

Hi,

 

 

I have a BIGIP LTM version 9.4.6 the problem is that i have a VIP listening in port 80 with two webservers and i can access correctly to http://www.myweb.com

 

But i have other VIP with the same ip listening in 443 with ssl client profile and when i try access to https://myweb.com the request load for a long time and then show a 400 error Bad request :

 

Your browser sent a request that this server could no understand. Reason: You're speaking plain HTTP to an SSL-enabled server port.

 

 

The webservers are listening in 80 and 443 because I test request that don't pass throught BIGIP and shows me the web correctly with the certificate loaded in the BIGIP.

 

 

Also i have tried to enable SNAT but doesn't work.

 

What could be the cause of the problem.

 

 

7 Replies

  • use firebug or chrome dev tools to look at your requests. You're definitely not trying to hit http://myweb.com:443??
  • I know that the request is good because the browser shows me the certificate that I have loaded in the BIGIP but then the error appears.

     

     

  • Can you use curl to access the virtual server which triggers the 400 response? I'd guess like Chris suggests that something is redirecting to an HTTPS URL with the port hard coded to 80 (You're speaking plain HTTP to an SSL-enabled server port).

     

     

    Here are examples for http and then https:

     

     

    curl -v http://1.1.1.1

     

     

    curl -vk https://1.1.1.1

     

     

    Aaron
  • The problem was in the web servers because they had the certificates loaded then i created a server ssl profile and works.

     

     

    Thanks and regards.
  • That makes more sense. Thanks for posting the solution.

     

     

    Aaron