tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yiannis Mavroukakis <>
Subject RE: HTTPS with Apache 2.0.48 and Tomcat 5.0.16
Date Mon, 02 Feb 2004 12:00:18 GMT
This is an httpd question but here goes :)
Just because you declared your virtual host/port pair that doesn't
mean that httpd is listening to port 443.
Therefore you need to add a Listen directive to your conf:

Listen your_virtual_host_name:443

and you should be set.


-----Original Message-----
From: Ralf Schneider []
Sent: 02 February 2004 11:42
To: 'Tomcat Users List'
Subject: HTTPS with Apache 2.0.48 and Tomcat 5.0.16


I try to set an Apache 2.0.48 with a connection to Tomcat 5.0.16 via mod_jk2

2.0.2. The static pages should be accessed via normal HTTP whereas the 
dynamic pages of my webapp should only be accessible via HTTPS for security.

I installed a certificate in /usr/local/apache2/conf/ssl.cert and set up a 
virtual host for the SSL pages in ssl.conf:

<VirtualHost _default_:443>
DocumentRoot "/usr/local/tomcat/webapps/demo_02"
ServerName www.development.home:443
ErrorLog /usr/local/apache2/logs/error_log
TransferLog /usr/local/apache2/logs/access_log

Alias /demo_02 "/usr/local/tomcat/webapps/demo_02"

<Location "/demo_02/WEB-INF/*">
    AllowOverride None
    deny from all

<Location "/demo_02/META-INF/*">
    AllowOverride None
    deny from all

JKMount /demo_02/*.do ajp13
JKMount /demo_02/*.jsp ajp13
JKMount /demo_02 ajp13
JKMount /demo_02/* ajp13

SSLEngine on
SSLCertificateFile /usr/local/apache2/conf/ssl.crt/server.crt
SSLCertificateKeyFile /usr/local/apache2/conf/ssl.key/server.key

<Files ~ "\.(cgi|shtml|phtml|php3?)$">
    SSLOptions +StdEnvVars
<Directory "/usr/local/apache2/cgi-bin">
    SSLOptions +StdEnvVars

SetEnvIf User-Agent ".*MSIE.*" \
         nokeepalive ssl-unclean-shutdown \
         downgrade-1.0 force-response-1.0

CustomLog /usr/local/apache2/logs/ssl_request_log \
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"


When I call the webapp over http://localhost/demo_02 everything works fine. 
The request to my webapp is forwarded to Tomcat. But when I switch to https
get "Connection refused" from the browser. I do not see anything in any log 

Did I miss a configuration step? Or did I misconfigure something?


To unsubscribe, e-mail:
For additional commands, e-mail:

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message