tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gessendorfer, Thomas" <Thomas.Gessendor...@TOP-ITSERVICES.COM>
Subject Virtual host, workers file and httpd.conf settings for SSL
Date Tue, 07 Jun 2005 10:42:47 GMT

just installed Apache and Tomcat with the JK Connector and it works for
1 worker on my machine.

Now I installed a new Application for which I want to have SSL access.
So I made a new virtual host in my hhtpd.conf that looks like this for =
the standard and the SSL host:

<VirtualHost *:80>
    ServerAdmin <>=20
    DocumentRoot c:/Apache/Apache2/htdocs
    ErrorLog  logs/
    CustomLog  logs/ common </VirtualHost>
<VirtualHost *:443>
  ServerAdmin <>=20
  DocumentRoot  C:/tomcat/Tomcat_5.5.9/webapps/idm
  ServerAlias  idm
  ErrorLog  logs/
  CustomLog  logs/ common=20
  SSLEngine On
  SSLCertificateFile conf/ssl/identity.crt
  SSLCertificateKeyFile conf/ssl/server.key </VirtualHost>=20


The JK Part of my httpd.conf looks like this:

# Update this path to match your modules location
LoadModule    jk_module  modules/

# Where to find
# Update this path to match your conf directory location (put = next to httpd.conf) JkWorkersFile
conf/ # Where to put jk logs # Update this path to
match your logs directory location (put mod_jk.log = next to access_log)
JkLogFile     logs/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevel    info
# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
# JkOptions indicate to send SSL KEY SIZE,=20
JkOptions     +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat set the request format=20
JkRequestLogFormat     "%w %V %T"
# send all Servlet Examples to worker1
JkMount /servlets-examples* worker1
# send all JSP Examples to worker1
JkMount /jsp-examples* worker1
# send all Servlet Examples to worker1
JkMount /tomcat-docs* worker1
# send all IDM Examples to worker1
JkMount /idm* worker1

Everything is sent to worker now in my file:

# Define 1 real worker using ajp13

# Set properties for worker1 (ajp13)

SSL is already working and I set up this host which =
should be O.K. too.

When I now access the host from the Webbrowser, I see =
the source Code of the /idm/*.jsp site not the correct Website.
Tomcat is not starting the WebApp.

What and how do I have to configure the virtual host, the httpd.conf JK
= configurations and the worker file to get the Webapp working
Do I have to set up a second worker (as ajp13?)?

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

View raw message