tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schlaefcke" <cschlaef...@wms-network.de>
Subject Apache2.0.46, Tomcat4.1.24, SSL, Virtualhost
Date Tue, 03 Jun 2003 16:41:33 GMT
Hi all,

after I took a very hard ride I got Tomcat via mod_jk working with
Apache/SSL on a Suse7 machine. So the real work can begin now:
What I want to do is to configure Tomcat in a way that it serves multiple
instances with different "CATALINA_BASE" settings. I want to reach those
instances (let there be 3 or 4) with different VirtualHosts and different
Ports.

For the beginning I configured only 2 instances of tomcat that are
listening to ports 8880 (instance_1) and 8980 (instance_2). AJP is
configured to listen on 8009 (instance_1) and 8019 (instance_2).

In general the connection via https://myhost is working (tested with
"/examples".

I set up the additional virtual hosts in ssl.conf:

<VirtualHost _default_:7443>
    DocumentRoot "/var/www/ssl_instance01"

    ServerName my_host:7443
    ErrorLog logs/error_log
    TransferLog logs/access_log

    SSLEngine on

    SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:
+EXP:+eNULL
    SSLCertificateFile /usr/local/apache2/conf/ssl.crt/server.crt
    SSLCertificateKeyFile /usr/local/apache2/conf/ssl.key/server.key

    #Pointing to the ROOT of instance_1
    <Location "/*">
     JkUriSet worker ajp13:localhost:8009
    </Location>
</VirtualHost>

<VirtualHost _default_:9443>
    DocumentRoot "/var/www/ssl_instance02"

    ServerName my_host:9443
    ErrorLog logs/error_log
    TransferLog logs/access_log

    SSLEngine on

    SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:
+EXP:+eNULL
    SSLCertificateFile /usr/local/apache2/conf/ssl.crt/server.crt
    SSLCertificateKeyFile /usr/local/apache2/conf/ssl.key/server.key

    #Pointing to the ROOT of instance_2
    <Location "/*">
     JkUriSet worker ajp13:localhost:8019
    </Location>
</VirtualHost>

I also have the default vhost listening on port 443.

I can reach the machine with "https://my_host", "https://my_host:7443",
"https://my_host:9443". The problem is that the addresses that normally
should point to different instances of Tomcat return the ROOT-content of
the same instance.

What am I missing. Am I approaching the wrong way? How can I configure
Apache/Tomcat in a way I described?

Thank s for any help!

Regards,

Chris



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message