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:
user <--(http)--> haproxy <--(https)--> actual service
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".
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.
I don't know whether at all if this is possible.
Let me know if I need to provide more details on this.
Any light on this would be very kind.
Thanks in advance.