Welcome! Log In Create A New Profile

Advanced

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

All files from this thread

File Name File Size   Posted by Date  
webmin.png 19.9 KB open | download Carsten Laun-De Lellis 04/27/2020 Read message
webmin_after_login.png 28.9 KB open | download Carsten Laun-De Lellis 04/27/2020 Read message
Nginx_Webmin.png 18.8 KB open | download Carsten Laun-De Lellis 04/27/2020 Read message
webminlogin36.png 26.3 KB open | download Carsten Laun-De Lellis 04/27/2020 Read message
Francis Daly
April 25, 2020 01:46PM
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.

Cheers,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Using NGINX as reverse proxy to webmin on a remote server

Carsten Laun-De Lellis April 24, 2020 05:02AM

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

Francis Daly April 25, 2020 01:46PM

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

Carsten Laun-De Lellis April 27, 2020 02:20AM

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

P.V.Anthony April 27, 2020 05:52AM

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

Carsten Laun-De Lellis April 27, 2020 08:50AM

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

P.V.Anthony April 27, 2020 02:46PM

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

P.V.Anthony April 28, 2020 01:36AM

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

Francis Daly April 29, 2020 01:16PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 191
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready