Hello I configured virtualmin and usermin behind apache proxies. (Following the “via proxy” conf described here)
The only thing that does not seem to work is when I go to a virtual server > edit users > (user) > “login to usermin”. This will redirect me to localhost:20000
This makes sense because the webmin server is called by apache through localhost. How can I change this behaviour?
.
|SYSTEM INFORMATION| Operating system Debian Linux 10 Webmin version 1.981 Usermin version 1.823 Virtualmin version 6.17-3 Authentic theme version 19.83-2
Having virtualmin behind a proxy is actually pretty common to avoid the “ugly” port :10000
My problem is related to Usermin. When I click on “login to usermin” it redirects to localhost:20000 I want this to redirect to the url of usermin, however I can’t find where can I configure this. Eventually it is a bug, because everything is working normally, including usermin.
Not technically a bug, because it’s forwarding you to the address you setup. I assume behind your proxy “localhost” is the hostname you have provisioned, and usermin does technically operate on port 20000 regardless as you’re proxying “webmin” which also technically runs on port 10000 even though you are likely referencing it by your proxied port.
Basically “Webmin” and “Usermin” from within the software are referencing their true ports that are known in the “Webmin” and “Usermin” settings on the “Webmin” side of the control panel.
Another option which is part of Virtualmin is the creation of “admin.domain.com” and “webmail.domain.com” which when you go to these addresses redirects to port “10000” and “20000” respectively meaning you don’t have to reference the ports directly when entering the URL in your browser.
Thanks, It is a good suggestion, but not exactly related to my problem. I think I failed to explain the problem properly. I will explain it again:
When I go to “virtual server > edit users > (user) > login to usermin”.
The redirection goes to localhost:20000
It is not redirecting to port 10000 (webmin). But to port 20000 (Usermin).
Webmin and virtualmin are working normally. Login is working normally behind the proxy. And actually usermin is also working normally behind a proxy (usermin.mydomain.com). This makes me think that is a bug.
How can I tell usermin that it is running behind a proxy? Or is this a bug isolated to the mentioned button (login to usermin) @trocster
Usermin is a separate service from Webmin. You have to configure both to operate behind a proxy. It is the same options as for Webmin just in the Usermin configuration instead.