Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
crees opened this issue Oct 6, 2020 · 10 comments
Closed

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

crees opened this issue Oct 6, 2020 · 10 comments

Comments

@crees
Copy link

crees commented Oct 6, 2020

Hello,

webmin/webmin#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
Copy link
Author

crees commented Oct 6, 2020

Sorry, actually this issue

webmin/webmin#1135

@iliajie
Copy link
Collaborator

iliajie commented Oct 7, 2020

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
Copy link
Author

crees commented Oct 7, 2020

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 crees closed this as completed Oct 7, 2020
@crees
Copy link
Author

crees commented Oct 7, 2020

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?

@crees crees reopened this Oct 7, 2020
@jcameron
Copy link
Collaborator

jcameron commented Oct 8, 2020

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

@crees
Copy link
Author

crees commented Oct 8, 2020

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

@jcameron
Copy link
Collaborator

jcameron commented Oct 9, 2020

Do you have the ProxyPassReverse directive in your Apache config?

@crees
Copy link
Author

crees commented Oct 11, 2020

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

@crees
Copy link
Author

crees commented Oct 11, 2020

OK, so the packaging of 1.803 appears to include the older version of web-lib-funcs.pl without the fix in webmin/webmin@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.

@crees crees closed this as completed Oct 11, 2020
@jcameron
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants