Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Zimbra 5.0 RC1 http jetty binding to IP on Server to multiple IPs

  1. #1
    richardcwgate's Avatar
    richardcwgate is offline Project Contributor
    Join Date
    Nov 2007
    Posts
    34
    Rep Power
    7

    Unhappy Zimbra 5.0 RC1 http jetty binding to IP on Server to multiple IPs

    Hello all administrators, greetings my fellow travellers on the road of discovery.

    Forgive me if I cover a road travelled many times but I feel this particular road may not be correctly marked on the old Sat Nav.

    Consider a Server with multiple IPs assigned to it running Zimbra 5.0 RC1 and hence Jetty which is taking the HTTP requests for users using the web client. Behold it doth bind to all possible IPs. Which is a good thing! Well in most cases anyway. However, if, for whatever reason, we want users to only connect to the web server via one or more of the assigned IPs and use somthing else on another, it is a less than good thing.

    One could try editing /opt/zimbra/mailboxd/etc/jetty.xml but when we restart Zimbra we find this file re-created as if by some devine miracle (or script).

    So what could be the correct way of doing this?

    Any thoughts, meditations or inspirations?

    Many thanks and blessing to you all, in advance.
    Methods of doing this using pre-5.0RC1 releases can be ignored.

  2. #2
    richardcwgate's Avatar
    richardcwgate is offline Project Contributor
    Join Date
    Nov 2007
    Posts
    34
    Rep Power
    7

    Smile The answer

    Very simple! Change the /opt/zimbra/mailboxd/etc/jetty.xml.in file and add a Set for a name of Host with the required IP address.
    Last edited by richardcwgate; 11-17-2007 at 12:47 PM. Reason: Typo
    ----------------------------------------------
    Having signatures is a sign of having signatures.

  3. #3
    richardcwgate's Avatar
    richardcwgate is offline Project Contributor
    Join Date
    Nov 2007
    Posts
    34
    Rep Power
    7

    Unhappy Jumped to soon!

    Although it seems to work, after some time Zimbra web client users could not logon, zclient/io errors on logon panel. This change causes Jetty to only listen on the IP and so does not hear SOAP requests directed to localhost. Need to look further.
    ----------------------------------------------
    Having signatures is a sign of having signatures.

  4. #4
    richardcwgate's Avatar
    richardcwgate is offline Project Contributor
    Join Date
    Nov 2007
    Posts
    34
    Rep Power
    7

    Smile Looking better

    Also modified zimbra.web.in and zimbraAdmin.web.in, uncomment the zimbra.soap.url section and change localhost:7070 to required IP and port 80.
    ----------------------------------------------
    Having signatures is a sign of having signatures.

  5. #5
    m-cubed is offline Junior Member
    Join Date
    Nov 2007
    Posts
    6
    Rep Power
    7

    Default

    Thanks for the post it fixed my problems too.

    I had jetty.xml.in working in Beta3 only to find out that it broke in rc2. I could not find any specifics for how to get Jetty to bind to more then one IP. I tried using both IP addresses in the host entry with a comma or a space between them but it did not work; no complaints from zimbra but there was no server bound at port 80. Adding a second host line in the same section just results in the server binding to the second host line.

    I have not tried it but maybe just copying the whole addConnector section as a new entry with one having a host of 127.0.0.1 and the other with a host of the specific binding IP might work?

  6. #6
    bonadio is offline Loyal Member
    Join Date
    Oct 2007
    Location
    Brazil
    Posts
    88
    Rep Power
    7

    Default

    Just to make clear for everybody

    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

    []s

  7. #7
    Developer is offline Junior Member
    Join Date
    Feb 2008
    Posts
    9
    Rep Power
    7

    Thumbs down Am i missing something?

    Hi,

    You're sure this works?

    When i do this (and also to the HTTPS connector), the backend works, but the frontend gives a zcontrol io error when logging in.

    2008-03-31 14:59:33,079 WARN [btpool0-6] [] webclient - local exception
    com.zimbra.cs.zclient.ZClientException: invoke Connection refused

    Am i missing something?

    Tnx,
    Dirk

  8. #8
    bonadio is offline Loyal Member
    Join Date
    Oct 2007
    Location
    Brazil
    Posts
    88
    Rep Power
    7

    Default

    Yes it is working in two different places

    Your error must be because

    ------------------------------------
    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
    ----------------------------------------------

    Make sure you do the above

    []s

  9. #9
    Developer is offline Junior Member
    Join Date
    Feb 2008
    Posts
    9
    Rep Power
    7

    Default

    I did that all, with the earlier mentioned result.

  10. #10
    bonadio is offline Loyal Member
    Join Date
    Oct 2007
    Location
    Brazil
    Posts
    88
    Rep Power
    7

    Default

    The problem with zclient io I had before I made the changes to
    zimbra.web.xml.in and zimbraAdim.web.xml.in

    After that everything start working.

    If you want I can look the files for you, post here

    jetty.xml.in, zimbra.web.xml.in and zimbraAdim.web.xml.in

    and the IP address you want to bind to.

    []s

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 12:42 AM
  2. Zimbra Install Problem - getDirectContext
    By bsimzer in forum Installation
    Replies: 27
    Last Post: 07-19-2007, 10:12 AM
  3. Replies: 7
    Last Post: 01-24-2007, 11:03 PM
  4. Zimbra server crashed
    By goetzi in forum Administrators
    Replies: 6
    Last Post: 03-25-2006, 01:00 PM
  5. Fedora Core 3, Clean Install - Not working!
    By pcjackson in forum Installation
    Replies: 17
    Last Post: 03-05-2006, 07:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •