Configure Apache as a front end to Tomcat Add to ${TOMCAT_HOME}/conf/server.xml after In ${APACHE_HOME}/conf/httpd.conf At the appropriate places in the file Add listen directives Listen 0.0.0.0:80 Listen 0.0.0.0:443 Ensure that the correct user owns Apache User your_user Group your_user_group Uncomment LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_ajp_module modules/mod_proxy_ajp.so LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule rewrite_module modules/mod_rewrite.so Set the appropriate server email ServerAdmin admin@example.com Set the server name directive ServerName www.example.com Set the virtual hosts ProxyTimeout 3600 SetOutputFilter DEFLATE ServerName www.example.com:443 RewriteEngine On SSLEngine On SSLCertificateFile conf/server.crt SSLCertificateKeyFile conf/server.key RewriteLog "/opt/coolstack/apache2/logs/rewrite.log" RewriteLogLevel 0 RewriteRule ^/css/(.*)$ /internal/css/$1 [L] RewriteRule ^/orbeon$ ajp://localhost:8009/orbeon/ [P,R,L] RewriteRule ^/orbeon/(.*)$ ajp://localhost:8009/orbeon/$1 [P,R,L] ProxyTimeout 3600 SetOutputFilter DEFLATE ServerName www.example.com:80 RewriteEngine On RewriteLog "/opt/coolstack/apache2/logs/rewrite.log" RewriteLogLevel 0 RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}