JKWorkerProperty worker.list=LoadBalancer
JKWorkerProperty worker.node1.host=xxx.com
JKWorkerProperty worker.node1.port=8009
JKWorkerProperty worker.node1.type=ajp13
JKWorkerProperty worker.node1.socket_connect_timeout=5000
JKWorkerProperty worker.LoadBalancer.type=lb
JKWorkerProperty worker.LoadBalancer.balance_workers=node1
JKWorkerProperty worker.LoadBalancer.sticky_session=1
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
SSLSessionCache shmcb:/tmp/ssl_gcache_data(512000)
SSLCertificateFile "/etc/apache2/conf/apache.crt"
SSLCertificateKeyFile "/etc/apache2/conf/apache.key"
SSLCertificateChainFile "/etc/apache2/conf/apache.crt"
# Should mod_jk send SSL information to the application server (default is On)
JkExtractSSL On
# What is the indicator for SSL (default is HTTPS)
JkHTTPSIndicator HTTPS
# What is the indicator for SSL session (default is SSL_SESSION_ID)
JkSESSIONIndicator SSL_SESSION_ID
# What is the indicator for client SSL cipher suit (default is SSL_CIPHER)
JkCIPHERIndicator SSL_CIPHER
# What is the indicator for the client SSL certificated (default is SSL_CLIENT_CERT)
JkCERTSIndicator SSL_CLIENT_CERT
# Allow all vhost to inherit mounts from the main server (default is Off)
JkMountCopy All
ServerAlias *
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R]
ServerName xxx.com
SSLEngine on
DocumentRoot "/etc/apache2/www"
SetHandler jakarta-servlet
SetEnv JK_WORKER_NAME LoadBalancer
SetEnvIf REQUEST_URI "\.css$" no-jk
SetEnvIf REQUEST_URI "\.jpg$" no-jk
SetEnvIf REQUEST_URI "\.js$" no-jk
SetEnvIf REQUEST_URI "\.html$" no-jk
SetEnvIf REQUEST_URI "\.png$" no-jk
SetEnvIf REQUEST_URI "\.xml$" no-jk
SetEnvIf REQUEST_URI "\.ico$" no-jk
SetEnvIf REQUEST_URI "\.xsl$" no-jk
SetEnvIf REQUEST_URI "\.gwt\.rpc$" no-jk
SetEnvIf REQUEST_URI "\.svg$" no-jk
SetEnvIf REQUEST_URI "\.htc$" no-jk
SetEnvIf REQUEST_URI "\.otf$" no-jk
# If the nosniff setting for the X-Content-Type-Options response
# header is used, omit the SetEnvIf line for .gif extenstions.
SetEnvIf REQUEST_URI "\.gif$" no-jk
SetEnvIf REQUEST_URI "/suite/s/" !no-jk
SetEnvIf REQUEST_URI "/suite/plugins/servlet" !no-jk
SetHandler jakarta-servlet
SetEnv JK_WORKER_NAME LoadBalancer
JkStripSession On
AllowOverride FileInfo
Require all granted
Header set Cache-Control no-store
Header set Cache-Control no-store
Header set Cache-Control no-store
ExpiresActive On
ExpiresDefault "now plus 1 hour"
ExpiresDefault "now plus 1 day"
ExpiresDefault "now plus 1 year"
ExpiresDefault "now"
Header set Cache-Control "max-age=0, must-revalidate"
Timeout 300
KeepAlive On
KeepAliveTimeout 60