I'm pretty much stuck at this point. I've got a website, served up on Mizuno (A Jetty variant, I think) using Padrino (A sinatra variant), on port 8080, with Nginx listening at 80/443 to allow for SSL proxying to it.
The site has a login wall, where a user logs in, then is challenged, before being allowed access to the site. Whenever I access it through port 8080 directly, everything works as expected, however, when I go through Nginx, I can only reach the challenge page. It kicks me back out to the login page whenever I try to post my response to the challenge.
EDIT: Additionally, when I log in, the application does in fact log me in correctly. If I try to access the next page directly through port 8080, after getting kicked out via nginx, it allows access.
My nginx config is as below
server {
listen 443;
server_name secure.website.io;
ssl_certificate ssl-bundle.crt;
ssl_certificate_key website.key;
ssl on;
ssl_session_timeout 5m;
ssl_protocols SSLv3 TLSv1;
ssl_ciphers ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM;
ssl_prefer_server_ciphers on;
location / {
proxy_redirect off;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-NginX-Proxy true;
client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
proxy_pass http://127.0.0.1:8080;
}
}
server {
listen 80;
server_name secure.website.io;
rewrite ^ https://$server_name$request_uri? permanent;
}
Am I missing something here?