tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Schmelzer" <>
Subject How to configure ssl vhosts in server.xml?
Date Fri, 09 Nov 2007 09:10:04 GMT

I have a Apache Tomcat configuration with vhosts in Tomcats server.xml. Those vhost entries
will be generated in the mod_jk.conf during Tomcat start.

So far so good, it works pretty good.

Now I have to configure ssl. At my first try I did that in the ssl_vhost.conf of the Apache:

        DocumentRoot "/usr/local/vipsysteme/vip8/website/"
        ErrorLog /var/log/apache2/error_log
        TransferLog /var/log/apache2/access_log
        SSLEngine on
        SSLCertificateFile /etc/apache2/ssl.crt/devwww.bla.com_server.crt
        SSLCertificateKeyFile /etc/apache2/ssl.key/devwww.bla.com_server.key
        CustomLog /var/log/apache2/ssl_request_log  ssl_combined

This works too - somehow... However there is a conflict with the vhost definitions in my mod_jk.conf.
A warning is displayed when Apache starts:

[warn] VirtualHost overlaps with VirtualHost, the first
has precedence, perhaps you need a NameVirtualHost directive

I guess it would be helpful to implement the ssl vhosts in my server.xml. This should generate
another vhost entry in the mod_jk.conf including the needed ssl properties.

The problem is, I don't know how (parameters, attributes, syntax). Please help! Maybe there
is an example or something.

Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN:

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message