webmin / usermin

Usermin source code
http://www.usermin.com/
Other
123 stars 47 forks source link

Usermin behind proxy redirects to http://locahost:20000 #64

Closed crees closed 3 years ago

crees commented 3 years ago

Hello,

https://github.com/webmin/webmin/issues/1027

This has been fixed in Webmin (excellent!) but is still an issue in Usermin.

Is there anything I can help with to solve this issue?

crees commented 3 years ago

Sorry, actually this issue

https://github.com/webmin/webmin/issues/1135

iliajie commented 3 years ago

Hi,

This has been fixed in Webmin (excellent!) but is still an issue in Usermin.

Considering that you're running latest Usermin 1.8+ it should be no problem, if you add correspondent config options to /etc/usermin, as well as you do for /etc/webmin configuraton.

crees commented 3 years ago

Ah, of course, I'm really really sorry, I appear to have an old version. Yes, I'm that guy. Thanks for the pointer!

crees commented 3 years ago

OK, so version 1.803 apparently that didn't fix it unfortunately. I even used setup.sh to get a clean config.

I've put webprefixnoredir=1 and webprefix=/selfserv (Apache proxies /selfserv/ to localhost:20000), exactly as the instructions say. Am I the only person with this issue?

jcameron commented 3 years ago

What server are you using as a proxy? It may also need to be configured to rewrite redirect URLs.

crees commented 3 years ago

I'm using Apache- the configuration is identical for Webmin and Usermin.

jcameron commented 3 years ago

Do you have the ProxyPassReverse directive in your Apache config?

crees commented 3 years ago

Yes. I've given up for now and just proxied using its usual hostname rather than localhost- this seems to work.

crees commented 3 years ago

OK, so the packaging of 1.803 appears to include the older version of web-lib-funcs.pl without the fix in https://github.com/webmin/webmin/commit/b90823, which is where the issue is. Copying the Webmin version over the Usermin one works for now, and I'm sure it'll end up sorting itself out in the latest Usermin iteration. Thanks again.

jcameron commented 3 years ago

FYI, we're releasing usermin 1.810 today which will include this fix.