Using NGINX as reverse proxy to webmin on a remote server
Carsten Laun-De Lellis
carsten.delellis at DELELLIS.NET
Fri Apr 24 09:01:36 UTC 2020
Hi all
I am new to Nginx and I don't get a setup running with one central web server and several webin servers.
The webin servers are setup according the following scheme:
WebminX runs on https://hostX.local.domain:10000.
My goal is to setup a central Nginx server and reverse proxy to the different webmin servers.
Therefor I created the following conf:
server {
listen 443 ssl;
server_name nginxhost.local.domain;
ssl_certificate /certs/ nginxhost.delellis.net.cert.pem;
ssl_certificate_key /certs/ nginxhost.delellis.net.privkey.pem;
# NGINX usually only allows 1M per request. Increase this to JIRA's maximum attachment size (10M by default)
client_max_body_size 10M;
location /host1 {
proxy_pass https://host1.local.domain:10000/;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_buffering off;
sub_filter_once off;
}
location /host2 {
proxy_pass https://host2.local.domain:10000/;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_buffering off;
sub_filter_once off;
}
}
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.
I would appreciate any help on this.
Mit freundlichem Gruß / Best regards
Carsten Laun-De Lellis
Hauptstrasse 13
D - 67705 Trippstadt
Phone: +49 6306 5269850
Mobile: +49 151 275 30865
Fax: +49 6306 992142
email: carsten.delellis at delellis.net<mailto:carsten.delellis at delellis.net>
http://www.linkedin.com/in/carstenlaundelellis
USt.-ID.: DE257421372
---------------------------------------------------
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.
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20200424/43509a19/attachment.htm>
More information about the nginx
mailing list