Welcome, Guest
Please Login or Register.
Lost Password?
Redirect Errors in Usermin via Apache proxy (1 viewing)
Post Reply

TOPIC: Redirect Errors in Usermin via Apache proxy

#8213
joeles (User)
Posts: 20
graphgraph
Redirect Errors in Usermin via Apache proxy 2007/10/28 13:34  
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. Not all links cause errors. There is also no login link.

Edit: Sorry for the double post. I'm not sure what happened.

Post edited by: joeles, at: 2007/10/28 13:37
Virtualmin Pro 3.58, CentOS Linux 5.2
  The administrator has disabled public write access.
#8266
JamieCameron (Admin)
Posts: 337
graphgraph
Re:Redirect Errors in Usermin via Apache proxy 2007/10/30 19:33  
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..
  The administrator has disabled public write access.
#8272
joeles (User)
Posts: 20
graphgraph
Re:Redirect Errors in Usermin via Apache proxy 2007/10/31 02:05  
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?
Virtualmin Pro 3.58, CentOS Linux 5.2
  The administrator has disabled public write access.
#8273
joeles (User)
Posts: 20
graphgraph
Re:Redirect Errors in Usermin via Apache proxy 2007/10/31 02:06  
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?
Virtualmin Pro 3.58, CentOS Linux 5.2
  The administrator has disabled public write access.
#8279
JamieCameron (Admin)
Posts: 337
graphgraph
Re:Redirect Errors in Usermin via Apache proxy 2007/10/31 09:04  
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://
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.