Welcome! Log In Create A New Profile

Advanced

AW: 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
Carsten Laun-De Lellis
April 27, 2020 02:20AM
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@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.

-----Ursprüngliche Nachricht-----
Von: Francis Daly <francis@daoine.org>
Gesendet: Saturday, April 25, 2020 7:45 PM
An: nginx@nginx.org
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.

Cheers,

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Attachments:
open | download - webmin.png (19.9 KB)
open | download - webmin_after_login.png (28.9 KB)
open | download - Nginx_Webmin.png (18.8 KB)
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: 157
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