Results 1 to 6 of 6

Thread: Setting httpPort in jetty/etc/zimbra.web.xml.in

  1. #1
    sblandford is offline Member
    Join Date
    Feb 2008
    Posts
    11
    Rep Power
    7

    Default Setting httpPort in jetty/etc/zimbra.web.xml.in

    The previous thread I posted came out blank for some reason. I have made some progress since then so hopefully this thread will be more useful.

    I am trying to get Zimbra to work on port 8888 so it can be proxied by Apache running on the same server to port 80/443. There are two mailbox servers.

    When one mailserver redirects a login to the other mailserver the redirect is on port 8888 rather than the intended port 80. I think I have found the setting I can over-ride to fix the redirects. It is in this section of jetty/etc/zimbra.web.xml.in...

    Code:
              <env-entry>
                    <description>
                            The http and httpsPort need to be in sync with the webserver
                            or the proxy - these are the ports that will be used in
                            redirects.
                    </description>
                    <env-entry-name>httpsPort</env-entry-name>
                    <env-entry-type>java.lang.String</env-entry-type>
            <env-entry-value>%%zimbraMailSSLPort%%</env-entry-value>
            </env-entry>
    
          <env-entry>
                    <env-entry-name>httpPort</env-entry-name>
            <env-entry-type>java.lang.String</env-entry-type>
            <env-entry-value>%%zimbraMailPort%%</env-entry-value>
            </env-entry>
    However, if I change %%zimbraMailPort%% to any port number other than 8888 the login screen doesn't redirect to the other mailbox server and I get an error, "A network service error has occurred (zclient/io)," displayed on the login screen.

    Would like to force all redirects generated by Zimbra to port 80 rather than the default port 8888.

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,437
    Rep Power
    56

    Default

    Quote Originally Posted by sblandford View Post
    The previous thread I posted came out blank for some reason.
    No, it was blocked from being posted by the forum ant-spam controls. It needed approval before you could see it, I approved the first post earlier and deleted your duplicate.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    Klug's Avatar
    Klug is offline Moderator
    Join Date
    Mar 2006
    Location
    Beaucaire, France
    Posts
    2,309
    Rep Power
    13

    Default

    Why not using zimbra-proxy on another server to get this "transparent" to users?

  4. #4
    sblandford is offline Member
    Join Date
    Feb 2008
    Posts
    11
    Rep Power
    7

    Default

    Quote Originally Posted by Klug View Post
    Why not using the Zimbra's way to change the port (instead of changing things in the config files)?

    Code:
    su - zimbra
    zmprov ms server.domain.tld zimbraMailPort (port#) zimbraMailSSLPort (SSL#)
    zmmailboxctld restart
    That would set the port AND the redirect port. I need to have Jetty listening on port 8888 and redirects within web pages to be on port 80 or 443.

  5. #5
    sblandford is offline Member
    Join Date
    Feb 2008
    Posts
    11
    Rep Power
    7

    Default

    Quote Originally Posted by Klug View Post
    Why not using zimbra-proxy on another server to get this "transparent" to users?
    The infrastructure spec is not flexible here. We are kind of stuck with a same-server soltuion. IMAP and web has to be on the same host name to use the same SSL cert. Asking for new machines at this stage isn't an option for me, unfortunately

  6. #6
    sblandford is offline Member
    Join Date
    Feb 2008
    Posts
    11
    Rep Power
    7

    Default

    Quote Originally Posted by phoenix View Post
    No, it was blocked from being posted by the forum ant-spam controls. It needed approval before you could see it, I approved the first post earlier and deleted your duplicate.
    When I click on the thread that is left it comes up with no content and I can't reply or edit it.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Initializing ldap...failed. (28416) on RHEL 5
    By Nicrad in forum Installation
    Replies: 35
    Last Post: 10-22-2012, 06:57 PM
  2. Zimbra has started deferring all mail
    By pwd in forum Administrators
    Replies: 13
    Last Post: 03-24-2008, 11:50 PM
  3. Fedora 8 install
    By ahuman in forum Installation
    Replies: 31
    Last Post: 02-15-2008, 08:37 AM
  4. Shared Folder
    By drdre in forum Administrators
    Replies: 20
    Last Post: 01-20-2008, 01:07 PM
  5. Fedora - latest versions?
    By sternfan in forum Installation
    Replies: 8
    Last Post: 01-09-2008, 05:53 AM

Posting Permissions

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