Results 1 to 3 of 3

Thread: Forcing Tomcat to a Single IP

  1. #1
    wdimmit is offline Senior Member
    Join Date
    Nov 2005
    Posts
    62
    Rep Power
    9

    Default Forcing Tomcat to a Single IP

    Hi. I'm running Zimbra on a server with 3 IP addresses, and I need it (specifically tomcat) to bind to one, rather than all of them. It seems that Tomcat is currently bound to all, but binding it (the http/https connectors) to a single IP in server.xml prevents Zimbra from starting. Do I need to create duplicate connectors to bind to 1 IP and to localhost? Am I overlooking something?

    Thanks for the help,
    Will

    *Edit* This is "Release 3.0.0_M4_41.RHEL4_20060117091200 CentOS4"
    Last edited by wdimmit; 02-06-2006 at 01:40 PM.

  2. #2
    KevinH's Avatar
    KevinH is offline Expert Member
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    18

    Default

    What error are you getting? We pre-bind to many ports in our startup code (native code) which allows us to bind to ports as root. It may be that this code is conflicting with your change to server.xml
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  3. #3
    wdimmit is offline Senior Member
    Join Date
    Nov 2005
    Posts
    62
    Rep Power
    9

    Default

    I just went back to recreate the error, and ended up with a different result. In /opt/zimbra/tomcat/conf/server.xml.in I changed

    Code:
    <!-- HTTPSBEGIN
    <Connector port="%%zimbraMailSSLPort%%"
    enableLookups="false" maxThreads="100" minSpareThreads="100" maxSpareThreads="100" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS"  keystoreFile="/opt/zimbra/tomcat/conf/keystore" keystorePass="zimbra"/>
    HTTPSEND -->
    to
    Code:
    <Connector port="%%zimbraMailSSLPort%%"
    enableLookups="false" maxThreads="100" minSpareThreads="100" maxSpareThreads="100" scheme="https" secure="true" address="192.168.0.5" clientAuth="false" sslProtocol="TLS"  keystoreFile="/opt/zimbra/tomcat/conf/keystore" keystorePass="zimbra"/>
    HTTPSEND -->
    And restarted Zimbra without error. Must have made some other mistake previously. Thanks.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 32
    Last Post: 03-18-2011, 11:03 AM
  2. Tomcat listen specific IP address
    By bibo in forum Administrators
    Replies: 2
    Last Post: 07-09-2007, 01:13 PM
  3. Replies: 11
    Last Post: 06-22-2007, 01:32 PM
  4. Ability to designate an IP Address
    By Isi in forum Administrators
    Replies: 18
    Last Post: 05-22-2007, 03:45 AM
  5. Replies: 2
    Last Post: 05-10-2007, 05:45 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
  •