<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
{font-family:inherit;
panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
code
{mso-style-priority:99;
font-family:"Courier New";}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";}
span.comment-copy
{mso-style-name:comment-copy;}
span.comment-date
{mso-style-name:comment-date;}
span.relativetime-clean
{mso-style-name:relativetime-clean;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:0in;background:white;vertical-align:baseline">
<span style="font-size:11.5pt;font-family:"inherit",serif;color:#242729">I am trying to use Nginx as a reverse proxy in an environment where clients connects to my server (<a href="https://myserver:10443/"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#242729;text-decoration:none">https://myserver:10443</span></a>).
I am trying to use Nginx as a reverse proxy so that client will connect to Nginx proxy and Nginx will forward all requests to backend server. The communication is ssl communication on port 10443. I have installed and configured Nginx but still not able to
connect to server through proxy. The configuration is<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:0in;background:white;vertical-align:baseline">
<span style="font-size:11.5pt;font-family:"inherit",serif;color:#242729">Not sure what I have done wrong. As of now, my backend is
</span><span class="comment-copy"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#242729;border:none windowtext 1.0pt;padding:0in;background:white">speaking to proxy on https on port 10443</span></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#242729;background:white">,
but eventually it will be http on port 10443. </span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1">http<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1">{<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"> server<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"> {<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"> listen 10443;<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"> ssl on;<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"> access_log /var/log/nginx/ssl-access.log;<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"> error_log /var/log/nginx/ssl-error.log;<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"> location /<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"> {<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"> #chunked_transfer_encoding on;<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"> proxy_buffering off;<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"> proxy_pass https://MYSERVER:10443;<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"> proxy_set_header Host $host;<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"> proxy_set_header X-Real-IP $remote_addr;<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"> proxy_set_header X-Forwarded-Proto $scheme;<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"> #proxy_redirect off;<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"> #proxy_ssl_session_reuse off;<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"> }<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"> ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"> ssl_session_timeout 10m;<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"> keepalive_timeout 60;<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"> ssl_session_cache builtin:1000 shared:SSL:10m;<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"> ssl_ciphers HIGH:!aNULL:!aNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"> ssl_prefer_server_ciphers on;<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"> ssl_certificate /etc/nginx/certs/endpoint/nginx.cer;<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"> ssl_certificate_key /etc/nginx/certs/endpoint/nginx_d.key;<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"> #ssl_client_certificate /etc/nginx/certs/endpoint/nginx.cer;<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"> #ssl_verify_client off;<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"> #ssl_verify_depth 2;<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1"> }<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1;vertical-align:baseline"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0in;background:#EFF0F1">}<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>