Welcome! Log In Create A New Profile

Advanced

SSL-Connection is redirected to port 80

Posted by Belenor 
SSL-Connection is redirected to port 80
March 07, 2013 05:46AM
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
Attachments:
open | download - total-config.txt (4 KB)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 252
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready