Hey guys,
I set up a new Zimbra Server on latest Server and be a bit confused atm.
On my last Zimbra Instance I configured http to https rederict with
"su - zimbra" -> "zmtlsctl redirect" -> "zmcontrol restart"
When I do this I cant access the WebGui anytime....
HTTP Error 301. How I can do a redirection?
2nd problem:
I have 10 Domains on this Server and would like to access the webgui with all Domains like
https://mail.domain-alpha.com
https://mail.domain-beta.de etc.
At this time I configured vHOSTS on MTA and "Domain" Tab but I get an 400 Bad Request HTTP Error....only the Main Domain "zimbra1.domain.com" is working....dis is just a cname....i want that mail.domain.com ist the main URL and my other domains like mail.domain-beta.de etc should access the web gui too.
CAn someone explain and help?
http redirect and multiple domains for webgui
-
- Posts: 5
- Joined: Mon Jan 02, 2017 1:01 pm
- jorgedlcruz
- Zimbra Alumni
- Posts: 2782
- Joined: Thu May 22, 2014 4:47 pm
Re: http redirect and multiple domains for webgui
Hello,
What version of Zimbra have you installed? In any case, if it's a modern one: For the multiple domains, you need to add the whole domain on the Admin console, and then add the virtual host, have you done that already?
Best regards
What version of Zimbra have you installed? In any case, if it's a modern one: For the multiple domains, you need to add the whole domain on the Admin console, and then add the virtual host, have you done that already?
Best regards
- L. Mark Stone
- Ambassador
- Posts: 2802
- Joined: Wed Oct 09, 2013 11:35 am
- Location: Portland, Maine, US
- ZCS/ZD Version: 10.0.7 Network Edition
- Contact:
Re: http redirect and multiple domains for webgui
zmtlsctl IMHO shouldn't be used any longer on single-server deployments now that Proxy is required.
What you want first is for the Internet-facing side of the Proxy to redirect incoming http requests over to https (and stay there).
But then, you need to make sure that how Proxy is going to try to talk to mailboxd, and how mailboxd is going to listen, are identical.
That takes one localconfig variable and two server settings, as follows:
zmprov gs yourserver.domain.com zimbraMailMode should be set to "https"
zmprov gs yourserver.domain.com zimbraReverseProxyMailMode should be set to "redirect"
zmlocalconfig zimbra_require_interprocess_security should be set to "1"
Hope that helps,
Mark
What you want first is for the Internet-facing side of the Proxy to redirect incoming http requests over to https (and stay there).
But then, you need to make sure that how Proxy is going to try to talk to mailboxd, and how mailboxd is going to listen, are identical.
That takes one localconfig variable and two server settings, as follows:
zmprov gs yourserver.domain.com zimbraMailMode should be set to "https"
zmprov gs yourserver.domain.com zimbraReverseProxyMailMode should be set to "redirect"
zmlocalconfig zimbra_require_interprocess_security should be set to "1"
Hope that helps,
Mark
___________________________________
L. Mark Stone
Mission Critical Email - Zimbra VAR/BSP/Training Partner https://www.missioncriticalemail.com/
AWS Certified Solutions Architect-Associate
L. Mark Stone
Mission Critical Email - Zimbra VAR/BSP/Training Partner https://www.missioncriticalemail.com/
AWS Certified Solutions Architect-Associate
-
- Posts: 5
- Joined: Mon Jan 02, 2017 1:01 pm
Re: http redirect and multiple domains for webgui
Hi,
thanks for the help.
I will try it with the redirection .
btw I'm on ZCS 8.8.6
For the multi domain I added them for Email traffic (works fine) and then go to "MTA" and add mail.domain2.com as vHost. Also I added it on the Domain Settings with "external Hostname" mail.domain2.com
thanks for the help.
I will try it with the redirection .
btw I'm on ZCS 8.8.6
For the multi domain I added them for Email traffic (works fine) and then go to "MTA" and add mail.domain2.com as vHost. Also I added it on the Domain Settings with "external Hostname" mail.domain2.com
-
- Posts: 5
- Joined: Mon Jan 02, 2017 1:01 pm
Re: http redirect and multiple domains for webgui
The redirect still dont work.
Here is my in- and output:
root@mail1:/home/user# su - zimbra
zimbra@mail1:~$ zmprov gs mail1.domain.com zimbraMailMode https
# name mail1.domain.com
zimbraMailMode: both
zimbra@mail1:~$ zmprov gs mail1.domain.com zimbraReverseProxyMailMode redirect
# name mail1.domain.com
zimbraReverseProxyMailMode: https
zimbra@mail1:~$ zmlocalconfig zimbra_require_interprocess_security 1
Warning: null valued key '1'
zimbra_require_interprocess_security = 1
zimbra@mail1:~$ zmcontrol restart
Here is my in- and output:
root@mail1:/home/user# su - zimbra
zimbra@mail1:~$ zmprov gs mail1.domain.com zimbraMailMode https
# name mail1.domain.com
zimbraMailMode: both
zimbra@mail1:~$ zmprov gs mail1.domain.com zimbraReverseProxyMailMode redirect
# name mail1.domain.com
zimbraReverseProxyMailMode: https
zimbra@mail1:~$ zmlocalconfig zimbra_require_interprocess_security 1
Warning: null valued key '1'
zimbra_require_interprocess_security = 1
zimbra@mail1:~$ zmcontrol restart