Login / Logout after reverse proxy configuration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ajenti |
Expired
|
Undecided
|
Unassigned |
Bug Description
Your control panel is awesome.... really loving it!!
I installed Ajenti on my test server (Ubuntu 13.04) to toy around a little. I wanted to use of my domain SSL certificate instead of a self-signed one, so I did a reverse proxy on Apache ( based on the configuration here: http://
Worked fine, but there is one small problem I noticed...
With this configuration, whenever I log in or log out, I'm sent back to [mydomain.com] website main page instead of Ajenti.
ex: https://[mydomain.
This is a very minor bug... just slightly annoying ;)
I'm no Python programmer, but I figured quickly that I little hack could easily correct this. Sure enough, I found the culprit in /usr/share/
I just changed the to 2 following (identical) lines of code:
[line 39 & line 46]
return context.
~ changed to ~
return context.
I looked around and also found 2 other instances of code redirecting to root path '/' and also made the same changes preemptively:
/usr/share/
[line 68]
context.
~ changed to ~
context.
/usr/share/
[line 112]
context.
~ changed to ~
context.
et voila... it worked :)
===========
I was wondering if it would be possible to have a more "white labeled" option when reverse proxying Ajenti, ie. be able to use the suffix path we want instead of /ajenti.
ex.: https://[mydomain.
Not that I don't like /ajenti has a suffix, but the success of Ajenti might translate into bots hammering every [mydomain.
That is all... Many thanks for your efforts in developing this awesome piece of software. I really appreciate!!
I don't have much experience with Apache, but it looks like you need to set up extra ProxyPassReverse directive to rewrite redirects from Ajenti: httpd.apache. org/docs/ 2.2/mod/ mod_proxy. html#proxypassr everse
I guess something like
ProxyPassReverse / /ajenti (however I'm not sure about it!)
=======
You can easily change 'ajenti' here
ProxyPass /ajenti http:// localhost: 8000
to 'panel' or anything as far as I'm concerned with Apache syntax