Webprefix repeated 6.16.gpl

Some urls are repeating the webprefix. for example the link to Virtualmin → System Settings → Re-Check Configuration is:

https://<host>/webmin/webmin/virtual-server/check.cgi

instead of

https://<host>/webmin/virtual-server/check.cgi

in /etc/webmin/config I have these lines:

referers_none=0
referers=<host>
webprefix=/webmin
webprefixnoredir=1

in /etc/webmin/miniserv.conf

ssl=0
bind=127.0.0.1
listen=10000

and in apache <host>.conf

ProxyPreserveHost On
ProxyPass /webmin/ http://localhost:10000/
ProxyPassReverse /webmin/ http://localhost:10000/

as per “Webmin In A Sub-Directory Via A Proxy”
here: Webmin

I realize some urls DO have /webmin/webmin/ like:

https://<host>/webmin/webmin/refresh_modules.cgi

Those seem to work correctly. Webmin login sometimes tries to go to https://:10000 even though webprefix is set. Once logged in, Webmin pages seem to work, but some Virtualmin links have the prefix repeated.

# dpkg -l webmin webmin-virtual-server | grep ^ii
ii  webmin     1.981    all    web-based administration interface for Unix systems
ii  webmin-virtual-server 6.16.gpl  all   Webmin module Virtualmin Virtual Servers

# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.3 LTS"
SYSTEM INFORMATION
OS type and version: Ubuntu 20.04.3 LTS
Webmin version: 1.981
Virtualmin version: 6.16.gpl
Related products version: none

1 Like

@Joe Is there a fix in the works for this?

I’ve never in my life run Webmin behind a proxy, so I’m the worst person to ask. @Ilia or @Jamie might know.

First of all, if you switch to an old Gray Theme does this issue still occur?

Also, can you try using as webprefix something else but potential module name, i.e. do not use webmin as prefix. Try something else, like mywebpanel – does it work then?

@Ilia It does not happen in the same places if I go back to the old Grey Theme. Wow, it’s been a while. The new theme is sure easier to navigate. I’ll try changing the proxy path later, hopefully tonight. The search path on Gray Theme points to:

form action="/webmin/webmin/webmin_search.cgi"

@Joe I work on sites where outbound ports are limited. Running Webmin/Virtualmin with the apache proxy is handy.

@TimRiker Thanks, Tim. This is indeed was a bug, which now is fixed.

1 Like

I applied that patch manually, and it seems to fix the issue. Thanks!

Any idea when this will show up in a release?

Actually, that patch wasn’t complete and adds issues with other proxies.