<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1488827941214_25334">Hello,</div><div id="yui_3_16_0_ym19_1_1488827941214_25340"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1488827941214_29348">I have run an application behind a nginx reverse proxy and I can't make it to work</div><div dir="ltr" id="yui_3_16_0_ym19_1_1488827941214_31182"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1488827941214_27487">a) if I access this application using <a href="https://1.1.1.1/" id="yui_3_16_0_ym19_1_1488827941214_27486">https://1.1.1.1:443</a> it works (certificate warning)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1488827941214_31215">b) if I access this application using <a href="https://myapp.mydomain.org,/" id="yui_3_16_0_ym19_1_1488827941214_31214">https://myapp.mydomain.org,</a> I get access to the login page</div><div dir="ltr" id="yui_3_16_0_ym19_1_1488827941214_25472">    location ^~ / {<br id="yui_3_16_0_ym19_1_1488827941214_25460">        proxy_pass        https://1.1.1.1:443;<br id="yui_3_16_0_ym19_1_1488827941214_25461">        proxy_redirect    off;<br id="yui_3_16_0_ym19_1_1488827941214_25462">        proxy_set_header  Host             $http_host;<br id="yui_3_16_0_ym19_1_1488827941214_25463">        proxy_set_header  X-Real-IP        $remote_addr;<br id="yui_3_16_0_ym19_1_1488827941214_25464">        proxy_set_header  X-Forwarded-For  $proxy_add_x_forwarded_for;<br id="yui_3_16_0_ym19_1_1488827941214_25465">        proxy_hide_header X-Frame-Options;</div><div dir="ltr" id="yui_3_16_0_ym19_1_1488827941214_31162">        proxy_hide_header X-Content-Security-Policy;<br id="yui_3_16_0_ym19_1_1488827941214_29390">        proxy_hide_header X-Content-Type-Options;<br id="yui_3_16_0_ym19_1_1488827941214_29391">        proxy_hide_header X-WebKit-CSP;<br id="yui_3_16_0_ym19_1_1488827941214_29392">        proxy_hide_header content-security-policy;<br id="yui_3_16_0_ym19_1_1488827941214_29393">        proxy_hide_header x-xss-protection;<br id="yui_3_16_0_ym19_1_1488827941214_29394">        proxy_set_header  X-NginX-Proxy true;<br id="yui_3_16_0_ym19_1_1488827941214_25467">        proxy_ssl_session_reuse off;<br id="yui_3_16_0_ym19_1_1488827941214_25470">    }<br id="yui_3_16_0_ym19_1_1488827941214_25471">c) I log in in the page and after some time (2/3 seconds) the application logs me out</div><div dir="ltr" id="yui_3_16_0_ym19_1_1488827941214_31181"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1488827941214_33014">When I log in directly case a) I notice that I have (firebug)<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1488827941214_33015">CookieSaveStateCookie=root; APPSESSIONID=070ABC6AE433D2CAEDCFFB1E43074416; testcookieenabled</div><div dir="ltr" id="yui_3_16_0_ym19_1_1488827941214_34790"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1488827941214_34800">Whereas when I log in in case c) I have</div><div dir="ltr" id="yui_3_16_0_ym19_1_1488827941214_34812">APPSESSIONID=070ABC6AE433D2CAEDCFFB1E43074416; testcookieenabled</div><div dir="ltr" id="yui_3_16_0_ym19_1_1488827941214_36634"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1488827941214_36639"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1488827941214_36658">So I feel there's a problem with the session or something like that.</div><div dir="ltr" id="yui_3_16_0_ym19_1_1488827941214_36659">PS: There is only one backend server and I can't run plain http (disable https)<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1488827941214_36660"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1488827941214_36674">Does anyone has an idea ?<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1488827941214_36711"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1488827941214_34813"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1488827941214_34786"><br></div></div></body></html>