Has anyone managed to bind Zimbra 5.0.x to a single IP? I'm particularly interested in jetty, as I need the other IP addresses on the box for https.
Has anyone managed to bind Zimbra 5.0.x to a single IP? I'm particularly interested in jetty, as I need the other IP addresses on the box for https.
in /opt/zimbra/mailboxd/etc/jetty.xml.in
add a line <Set name="Host"> your ip</Set> so it gets like this
<!-- user services connector, no SSL -->
<!-- HTTPBEGIN -->
<Call name="addConnector">
<Arg>
<New id="http" class="org.mortbay.jetty.nio.SelectChannelConnecto r">
<Set name="port"><SystemProperty name="jetty.port" default="%%zimbraMailPort%%"/></Set>
<Set name="maxIdleTime">30000</Set>
<Set name="lowResourceMaxIdleTime">1000</Set>
<Set name="Acceptors">2</Set>
<Set name="confidentialPort">%%zimbraMailSSLPort%%</Set>
<Set name="Host">your IP</Set>
</New>
</Arg>
</Call>
Now in the zimbra.web.xml.in and zimbraAdim.web.xml.in
uncomment
<context-param>
<param-name>zimbra.soap.url</param-name>
<param-value>http://your ip/service/soap</param-value>
</context-param>
ATENTION remove the port :7070
Thats it , restart and enjoy
Thanks! I also had to add the Host value to the other connectors in jetty.xml.in, in my case the SSL connector as I want my https ports back on other IPs.
Hmm actually no it trashed jetty and I've had to reinstall. Will investigate further!
OK it does work just have to read the instructions and look at the code very carefully! Couple of notes:
- Careful of commented areas that need uncommenting.
- If you're running in SSL mode then it's '<!-- user services connector, SSL -->', not '<!-- user services connector, no SSL -->' section that needs the extra Host attribute.
- If you're running in SSL mode then the soap URL needs to be https instead of http.
There are currently 1 users browsing this thread. (0 members and 1 guests)