Hi, I hope everybody have a nice day.

This is my scenario:
- 1 Windows server.
- 1 Tomcat 5.5 installation.
- 2 IP addresses.
- 2 Domains.
- 2 SSL certificates.
- 1 big problem: I can't install both certificates in Tomcat.

I read something about a solution on this using ip-based virtual hosts. But I can't create them?

Can I have IP-Based Virtual Hosting using just Tomcat? or I need Apache running and then Tomcat over it? What about creating separate JVMs for each virtualhost?

If someone has a server.xml file to share with me on how create virtual host, please send post it to the list. I and many others would be very thankful.

What do you think about this server.xml file:

<Server port="8005" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" /> <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
 <GlobalNamingResources>
   <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
   <Resource name="UserDatabase" auth="Container"
             type="org.apache.catalina.UserDatabase"
      description="User database that can be updated and saved"
          factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
         pathname="conf/tomcat-users.xml" />
 </GlobalNamingResources>

 <Service name="Catalina">

       <Connector
         port="443"
         address="72.3.245.1"
           maxThreads="150"
           enableLookups="false"
           disableUploadTimeout="true"
           debug="4"
           scheme="https"
           secure="true"
           keystoreFile="D:/jdk1.5.0_02/bin/hp"
           keystorePass="pass"
           useIPVHosts="true"
        />

        <Connector
         port="443"
         address="72.32.93.2"
           maxThreads="150"
           enableLookups="false"
           disableUploadTimeout="true"
           debug="4"
           scheme="https"
           secure="true"
           keystoreFile="D:/jdk1.5.0_02/bin/reg"
           keystorePass="pass"
           useIPVHosts="true"
        />

   <Connector port="8009"
enableLookups="false" redirectPort="443" protocol="AJP/1.3" />

   <Engine name="Catalina" defaultHost=www.domain1.com>

     <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
            resourceName="UserDatabase"/>

      <Host  name=www.domain1.com
          appBase="webapps"
          unpackWARs="true"
          autoDeploy="true">
   </Host>

   <Host  name="www.domain2.com"
          appBase="webapps"
          unpackWARs="true"
          autoDeploy="true">
   </Host>
   </Engine>
 </Service>
</Server>



I got a binding error:

java.net.BindException: Cannot assign requested address: JVM_Bind:443
at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:297) at org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:312)
at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:176)
at org.apache.catalina.connector.Connector.start(Connector.java:992)
at org.apache.catalina.core.StandardService.start(StandardService.java:459)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2010)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
May 10, 2006 3:33:37 PM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException: Protocol handler start failed: java.net.BindException: Cannot assign requested address: JVM_Bind:443
at org.apache.catalina.connector.Connector.start(Connector.java:994)
at org.apache.catalina.core.StandardService.start(StandardService.java:459)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2010)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)

Thank you very much,
Isaac Martinez

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to