Redirect Errors in Usermin via Apache proxy

4 posts / 0 new
Last post
#1 Sun, 10/28/2007 - 13:34
joeles

Redirect Errors in Usermin via Apache proxy

I need Usermin to be accessable via a standard port. (https://domain.com/tools/) I tried applying the instructions at http://doxfer.com/Webmin/UnderApache#Webmin_Proxied_Through_Apache to setup a proxy for Usermin, but was unable to get Apache configured properly by hand. Instead, I used the "Proxy Paths" module in Virtualmin to set up the proxy. This kind of works, but I have several issues that I don't think are related to the way that the proxy was setup. After logging in, Usermin tries to redirect me to the proxied url (http://localhost:20000) and causes an error. If I start back at http://domain.com/tools/, I am logged in and see the Inbox. I found this behavior also occurs when composing, deleting, marking read/unread, forwarding mail, using the"Change IMAP login" link, changing Spamassassin settings, and maybe other actions. There is also no login link.

Tue, 10/30/2007 - 19:33
Joe
Joe's picture

It is possible to run Usermin proxied like this, and the 'Proxy paths' feature of Virtualmin is the easiest way to set it up - it actually adds the ProxyPass and ProxyPassReverse directives documented on that doxfer.com page you mentioned.

However, you also need to add the following lines to /etc/usermin/config , so that it knows it is running under a proxy URL :

webprefix=/tools
webprefixnoredir=1

Let me know if that works or not..

--

Check out the forum guidelines!

Wed, 10/31/2007 - 02:05 (Reply to #2)
joeles

I didn't explain myself very well, but /etc/usermin/config is where I put the config settings. What's strange is I hadn't tried logging in since I first posted this, but now I can't. The only way I can login now is by removing the webprefix settings from the config file. Before I could log in, but I got the bad redirect behavior. I installed the Virtualmin update yesterday. Could that have affected this?

Wed, 10/31/2007 - 09:04 (Reply to #3)
Joe
Joe's picture

If you look at your Apache configuration file for the virtual server, what do the ProxyPass and ProxyPassReverse lines contain?

Also, I thought of another possible problem - sometimes proxying doesn't work too well for Usermin in SSL mode (which is pointless anyway). So try turning off SSL in the Usermin Configuration mode, and make sure your proxy URL starts with http:// and not https://

--

Check out the forum guidelines!

Topic locked