title: http request to https request using haproxy
body: <p>I have a situation where I want to redirect all the http requests to https request using haproxy. Let say, I have a server x where haproxy is installed and a server y where actual services are running (using ssl). Now, I want that the haproxy to accept http requests and forward it to the backend server via https.
  Kinda like this:</p>
  
  <p>user &lt;--(http)--> haproxy &lt;--(https)--> actual service</p>
  
  <p>what I have done so far is, frontend accepts http connection in port 8080 and it sends to its default-backend, in backend I have prepended "ssl verify none".</p>
  
  <p>Using this, I could load the page from http but whenever I am submitting a request (say login), response is coming in http url and nothing works.</p>
  
  <p>I don't know whether at all if this is possible.</p>
  
  <p>Let me know if I need to provide more details on this.</p>
  
  <p>Any light on this would be very kind.</p>
  
  <p>Thanks in advance.</p>