?redirect=0 works fine for me for when connecting via http. But the analogous setup with https doesn't work.
This is the apache config on the external-facing web server:
ServerName zimbra-external.example.com:443
ProxyPassReverse /
https://zimbra-internal.example.com/
RewriteEngine on
RewriteRule ^/(.*)$ https://zimbra-internal.example.com/$1 [P]
Typing
https://zimbra-external.example.com/zimbra/?redirect=0 into the browser serves the login page. But when I enter the username+password, zimbra redirects to zimbra-internal.example.com which isn't visible from the outside world.
I wonder whether I could be doing something wrong. The wierd thing is that the analogous arrangements all work fine over http.
Looking at the SOAP messages which follow the login attempt, the AuthRequest message seems to be ok, but it is followed by this request:
POST
https://zimbra-external.example.com:...th/?redirect=0 HTTP/1.1
Referer:
https://zimbra-external.example.com/...rect=0&debug=1
Cookie: AjxDebugWinOpen=true; JSESSIONID=B4CAC6F9C8BCE7E1344C6250948FCDF0; ls_last_username=user; ls_last_server=zimbra-external.example.com
authToken=a-big-number&atl=172800000
and here is the response:
HTTP/1.1 302 Moved Temporarily
Server: Apache-Coyote/1.1
Cache-control: public, max-age=604800, post-check=7200, pre-check=604800
Set-Cookie: ZM_AUTH_TOKEN=a-big-number; Path=/
Location:
https://zimbra-internal.example.com:...ail?redirect=0
Content-length: 0
Via: 1.1 zimbra-external.example.com