claudyus / LXC-Web-Panel

LXC Web Panel improved for lxc 1.0+
http://claudyus.github.io/LXC-Web-Panel/
Other
221 stars 68 forks source link

Logout link redirects to http #109

Open patrakov opened 8 years ago

patrakov commented 8 years ago

I have put LXC web panel behind Apache, so that it handles https for me, and did this:

ProxyPass "/" "http://127.0.0.1:5000/"

Result: when I log out, Flask the web server gives me out an absolute redirect to http://lwp.mysite.com/ . It should give out an absolute redirect to https://www.mysite.com/ , or a relative redirect to / .

I have worked this using this directive, but it is a hack that should never be needed:

ProxyPassReverse "/" "http://lwp.mysite.com/"