Hello everybody,
I'm currently trying to migrate from an physical apache server, serving as frontendserver for a few tomcats to a virtualized nginx and a view tomcats running in virtual machines.
Everything seems to work fine, as long as there is no switch from https to http. The application I need to run on the tomcats serves an loginpage by http, but the post-request when you click "login" is ssl-encrypted. If someone misspelled the password or username, he gets an error-page, which seems to be serverd by http. Whenever i watch what is going on with e.g. Firebug, I can see a https postrequest after klicking login (with wrong password) and afterwards getting http-status 302 and an redirect to something like http://www.example.com/some/errorpage?parms=value&ohter=othervalue. This is how it works with apache2 as proxy. Using nginx results in an redirect to something like this: https://www.example.com:80/some/errorpage?parms=value&ohter=othervalue. This results in an SSL-Error and Firefox tells "error code: ssl_error_rx_record_too_long".
Any hint would be apreciated.
My config is posted in the attachment.
Greetings
Belenor