post login redirects with ssl rverse proxy

14 views
Skip to first unread message

chris

unread,
Jan 19, 2009, 1:45:17 PM1/19/09
to Django users
Hi Guys
I've got an an internal site on a http://internal1 that we want to
expose to the world using a apache reverse proxy running SSL i.e
https://external.org
We're using mod_proxy mod_proxy_html

ProxyPass /external/ http://internal
<Location /internal1/>
ProxyPassReverse /
SetOutputFilter proxy-html
ProxyHTMLURLMap / /internal1/
ProxyHTMLURLMap /internal1 /internal1
ProxyHTMLURLMap /internal1 /internal1/media/
ProxyHTMLURLMap /site_media /internal1/site_media
ProxyHTMLURLMap /admin /internal1/admin/
DefaultType None
RequestHeader unset Accept-Encoding
</Location>
Note we are also a spyce and php application (http://internal2,http://
interna3) that we also want to expose and we only have one fixed ip
and SSL cert assigned to external.org. As such we can't use as
separate virtual server for each external application

Every thing basically works (IE of course has been a bitch!!)
except that when you login in you get redirected to the http://external
My login (@login_required) my login template looks like

<form method="post" action="?next={{ next|default:"/internal/" }}">
<p class="entry_layout">
<label for="id_username">Username:</label>{{ form.username }}
<br />
<br />
<label for="id_password">Password:</label>{{ form.password }}
<p style="padding-left: 230px;">
<input type="submit" value="login" />
</form>
note this works fine with http://internal1
Can anyone give me some pointers??
Thanks
Regards
Chris


Reply all
Reply to author
Forward
0 new messages