<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=iso-8859-1">
<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:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* 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;}
span.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.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 class="MsoNormal"><span lang="DE">Hi all<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE"><o:p> </o:p></span></p>
<p class="MsoNormal">I am new to Nginx and I don’t get a setup running with one central web server and several webin servers.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The webin servers are setup according the following scheme:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">WebminX runs on <a href="https://hostX.local.domain:10000">https://hostX.local.domain:10000</a>.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">My goal is to setup a central Nginx server and reverse proxy to the different webmin servers.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Therefor I created the following conf:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">server {<o:p></o:p></p>
<p class="MsoNormal"> listen 443 ssl;<o:p></o:p></p>
<p class="MsoNormal"> server_name nginxhost.local.domain;<o:p></o:p></p>
<p class="MsoNormal"> ssl_certificate /certs/ nginxhost.delellis.net.cert.pem;<o:p></o:p></p>
<p class="MsoNormal"> ssl_certificate_key /certs/ nginxhost.delellis.net.privkey.pem;<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> # NGINX usually only allows 1M per request. Increase this to JIRA's maximum attachment size (10M by default)<o:p></o:p></p>
<p class="MsoNormal"> client_max_body_size 10M;<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> location /host1 {<o:p></o:p></p>
<p class="MsoNormal"> proxy_pass https://host1.local.domain:10000/;<o:p></o:p></p>
<p class="MsoNormal"> proxy_set_header X-Forwarded-Host $host;<o:p></o:p></p>
<p class="MsoNormal"> proxy_set_header X-Forwarded-Server $host;<o:p></o:p></p>
<p class="MsoNormal"> proxy_set_header X-Real-IP $remote_addr;<o:p></o:p></p>
<p class="MsoNormal"> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<o:p></o:p></p>
<p class="MsoNormal"> proxy_buffering off;<o:p></o:p></p>
<p class="MsoNormal"> sub_filter_once off;<o:p></o:p></p>
<p class="MsoNormal"> }<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> location /host2 {<o:p></o:p></p>
<p class="MsoNormal"> proxy_pass https://host2.local.domain:10000/;<o:p></o:p></p>
<p class="MsoNormal"> proxy_set_header X-Forwarded-Host $host;<o:p></o:p></p>
<p class="MsoNormal"> proxy_set_header X-Forwarded-Server $host;<o:p></o:p></p>
<p class="MsoNormal"> proxy_set_header X-Real-IP $remote_addr;<o:p></o:p></p>
<p class="MsoNormal"> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<o:p></o:p></p>
<p class="MsoNormal"> proxy_buffering off;<o:p></o:p></p>
<p class="MsoNormal"> sub_filter_once off;<o:p></o:p></p>
<p class="MsoNormal"> }<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">}<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Unfortunately this is not working. I have checked the internet but found only how-tos where Nginx and webmin server running on the same host. Also these how-tos don’t work for me.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I would appreciate any help on this.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="DE" style="font-size:10.0pt;font-family:"Times New Roman",serif;background:white">Mit freundlichem Gruß / Best regards<span style="color:black"><o:p></o:p></span></span></p>
<p class="MsoNormal"><span lang="DE" style="font-size:10.0pt;font-family:"Times New Roman",serif;background:white"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="DE" style="font-size:10.0pt;font-family:"Tahoma",sans-serif;background:white">Carsten Laun-De Lellis</span><span lang="DE" style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE" style="font-size:10.0pt;font-family:"Tahoma",sans-serif;background:white"> </span><span lang="DE" style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE" style="font-size:10.0pt;font-family:"Tahoma",sans-serif;background:white">Hauptstrasse 13</span><span lang="DE" style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;background:white">D - 67705 Trippstadt</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;background:white"> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;background:white">Phone: +49 6306
</span>5269850<span style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;background:white">Mobile: +49 151 275 30865</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;background:white">Fax: +49 6306 992142</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;background:white">email: <span style="color:#0563C1"><a href="mailto:carsten.delellis@delellis.net"><span style="color:blue">carsten.delellis@delellis.net</span></a></span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;background:white"> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:white"><a href="http://www.linkedin.com/in/carstenlaundelellis" target="_blank"><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#0563C1">http://www.linkedin.com/in/carstenlaundelellis</span></a></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:white"> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE" style="background:white">USt.-ID.: DE257421372</span><span lang="DE" style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE" style="font-size:12.0pt;background:white"> </span><span lang="DE" style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE" style="font-size:10.0pt;font-family:"Tahoma",sans-serif">---------------------------------------------------<br>
<br>
Diese E-Mail könnte vertrauliche und/oder rechtlich geschützte Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte
Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.<br>
<br>
</span><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif">This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and
destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>