<div dir="ltr"><div dir="ltr"><div dir="ltr">Hello all,<div><br></div><div>I am attempting to use nginx as a reverse proxy to funnel HTTP traffic to a HTTPS back-end (both in a Docker container). I cannot enable HTTPS on my front-end yet, so this would be a temporary solution to my issue.</div><div><br></div><div>Only one of my back-end application is giving me an issue right now, and that issue seems to be characterized by the JSESSIOND cookie coming from the back-end  being lost at the nginx level. If I test outside Docker with SSL, I get a JSESSIONID cookie in my request back.</div><div><br></div><div>My two URLs are [example]:</div><div><a href="http://myurl.example.com/AppA">http://myurl.example.com/AppA</a></div><div><a href="http://myurl.example.com/AppB">http://myurl.example.com/AppB</a></div><div><br></div><div>I believe that I may need to enable SSL certificates between nginx and my back-ends, but I couldn't find clear indications on how to do this online.</div><div><br></div><div>My nginx config file looks like this:</div><div><br></div><div><div><div><font face="courier new, monospace">worker_processes 1;</font></div><div><font face="courier new, monospace">daemon off;</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">events {</font></div><div><font face="courier new, monospace">    worker_connections 1024;</font></div><div><font face="courier new, monospace">}</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">http {</font></div><div><font face="courier new, monospace">    access_log /dev/stdout;</font></div><div><font face="courier new, monospace">    error_log /dev/stderr warn;</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">    server {</font></div><div><font face="courier new, monospace">        listen              80;</font></div><div><font face="courier new, monospace">        server_name         <a href="http://myurl.example.com">myurl.example.com</a>;</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">        location /AppA {</font></div><div><font face="courier new, monospace">            proxy_pass      <a href="https://localhost:9443">https://localhost:9443</a>;</font></div><div><font face="courier new, monospace">        }</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">        location /AppB {</font></div><div><font face="courier new, monospace">            proxy_pass      <a href="https://localhost:9043">https://localhost:9043</a>;</font></div><div><font face="courier new, monospace">        }</font></div><div><font face="courier new, monospace">    }</font></div><div><font face="courier new, monospace">}</font></div></div></div><div><br></div><div>Thank you for any assistance you can provide.</div><div><br></div><div>JC</div></div></div></div>