tomcat-users mailing list archives

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

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:

<VirtualHost devsecure.bla.com:443>
        ServerName devsecure.bla.com
        DocumentRoot "/usr/local/vipsysteme/vip8/website/devwww.bla.com"
        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
</VirtualHost>

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 devsecure.bla.com:443 overlaps with VirtualHost devwww.bla.com:0, 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.

Cheers,
Mike
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message