AW: Using NGINX as reverse proxy to webmin on a remote server

Carsten Laun-De Lellis carsten.delellis at DELELLIS.NET
Mon Apr 27 06:19:11 UTC 2020

Hi Francis

First of all. Thank you very much for your quick reply.

As I said I am new to Nginx and not 100% sure, what information you need to help me here.

I tried your config, but it doesn't work. This means I am forwarded to the webmin login page, but can see the basic html only (login form, headline). I cannot see any graphical elements, like colors, gifs ....

I have attached screenshots from the login page, and after login. I have also attached a simple network drawing how the servers are connected.

If you need some more information please let me know what to look for in the logs. 

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
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.

-----Ursprüngliche Nachricht-----
Von: Francis Daly <francis at> 
Gesendet: Saturday, April 25, 2020 7:45 PM
An: nginx at
Betreff: Re: Using NGINX as reverse proxy to webmin on a remote server

On Fri, Apr 24, 2020 at 09:01:36AM +0000, Carsten Laun-De Lellis wrote:

Hi there,

> 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.

>         location /host1 {
>                 proxy_pass https://host1.local.domain:10000/;

For this, you probably want "location /host1/" (with the trailing /).

> 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.

What does "not working" mean here?

You make one specific request; you want to get one specific response; but you get a different response instead?

I suspect that things will be simpler if you are happy to reconfigure all of the "webmin" instances so that they believe they are installed at the same place in the url hierarchy as the external users see. That is:

* add the line webprefix=/host1 to /etc/webmin/config on host1
* add the line webprefix=/host2 to /etc/webmin/config on host2

and then change your config to only use one trailing slash like so:

  location /host1/ {
    proxy_pass https://host1.local.domain:10000;

And if there is still a problem, if you can show the request/response that does not do what you expect, it may be simpler for others to understand and help.


Francis Daly        francis at

-------------- next part --------------
A non-text attachment was scrubbed...
Name: webmin.png
Type: image/png
Size: 20356 bytes
Desc: webmin.png
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: webmin_after_login.png
Type: image/png
Size: 29593 bytes
Desc: webmin_after_login.png
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Nginx_Webmin.png
Type: image/png
Size: 19206 bytes
Desc: Nginx_Webmin.png
URL: <>

More information about the nginx mailing list