I have an application that is currently setup to redirect from port 8080 to port 8009. This then uses the mod_jk connector to redirect it to port 80 so that the application is viewable as if it was running on apache.
I've recently purchased an SSL certificate and am having difficulty configuring tomcat to redirect properly.
Below is my current configuration:
server.xml
Quote:
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8080" acceptCount="100" connectionTimeout="20000"
disableUploadTimeout="true" URIEncoding="UTF-8"
scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="NEWkeystore"
keystorePass="password" />
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009" UIEncoding="UTF-8" tomcatAuthentication="false"
enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
<Host name="www.mydomain.org" appBase="/path/to/directory"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="application" debug="0" reloadable="true"/>
</Host>
|
worker.properties
Quote:
workers.tomcat_home=/usr/share/tomcat6
workers.java_home=/usr/java/jdk1.6.0_16
ps=/
worker.list=worker1
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.type=ajp13
worker.worker1.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=worker1
worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
worker.inprocess.cmd_line=start
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$(ps)
i386$(ps)classic$(ps)libjvm.so
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stder
|
mod_jk
Quote:
# Where to put jk logs
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,
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat set the request format
JkRequestLogFormat "%w %V %T"
# Send requests for context /application to worker named worker1
JkMount /application/* worker1
# Rewrite rule in case
RewriteRule ^/(application/.+);jsessionid=\w+$ /$1
|
After all this when I try to visit the url:
https://www.mydomain.com/application
I get the error:
Forbidden
You don't have permission to access /e-resources/ on this server.
Any suggestions on what I can do to get this working? Your help is greatly appreciated.