Hello everyone,
i’ve installed Webmin in a Docker container. OS System Debian 13. Webmin Version 2.620. Additionally, I’m running an Nginx Proxy Manager in a separate Docker container.
The proxy manager is accessible from the internal network via the IP address 192.168.20.130.
The Webmin user interface is accessible via the same IP address, but on port 10000.
Now I want to access the Webmin website via the following FQDN: “webmin.intern.harnet.de”.
I’ve configured the following settings in the Nginx Proxy Manager and in the miniserv.conf file:
miniserv.conf:
When I try to access the Webmin website via the FQDN, I always get a page with the following error:
“502 Bad Gateway”.
I just can’t get it to work. I would appreciate any help.
Regards, Stefan
I’ve adjusted everything as described. The error message hasn’t changed at all. I don’t understand it. Is there a way to enable debug logging? I can’t find any clues in the logs either.
config:
I’m not a fan of containers, but, I’m probably just stupid on how to use them. If the Proxy is in a container then how does the request get back out to Webmin? Isn’t 127.x.x.x going to be used inside the container? It’s going to have to be rerouted back out. Now we have a network issue?
I found the error. I’m sorry. The problem was with my laptop. I thought I had changed the old DNS settings. That was wrong. The FQDN was still pointing to the old IP address. That meant nothing could reach the Nginx Proxy Manager. I changed the DNS settings and now it works. One more thing: Since I’m working with self-signed certificates and using both the FQDN and the IP address in the certificates, it’s absolutely essential to enter “proxy_pass” the container’s IP address in the Nginx Proxy Manager’s “Custom Nginx Configuration,” not the loopback address.
# Disable proxying for all /.well-known requests. It will
# only be useful, if a domain has "root" defined
location ^~ /.well-known/ {
try_files $uri /;
}
# Proxying both HTTP and websockets
location / {
proxy_pass https://192.168.20.130:10000/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection Upgrade;
proxy_set_header Host $host;
# Disable buffering to make progressive
# output work as expected
proxy_buffering off;
proxy_request_buffering off;
# Enable large file uploads
client_max_body_size 64g;
}