* scripts/mir-setup/conf: updated to use tomcat5.5
[mir.git] / scripts / mir-setup / conf / tomcat4 / site-ssl-dedicated-httpd.conf
diff --git a/scripts/mir-setup/conf/tomcat4/site-ssl-dedicated-httpd.conf b/scripts/mir-setup/conf/tomcat4/site-ssl-dedicated-httpd.conf
new file mode 100755 (executable)
index 0000000..211e8f4
--- /dev/null
@@ -0,0 +1,42 @@
+# Editor: vim:syn=apache
+# $SECUREFQDN (SSL)
+<VirtualHost $SECUREFQDN:443>
+  ServerAdmin $USER@$FQDN
+  DocumentRoot $PRODUCTIONDIR
+  ServerName $SECUREFQDN
+
+  SSLEngine on
+  SSLCertificateFile /etc/apache2/ssl/$SECUREFQDN.crt
+  SSLCertificateKeyFile /etc/apache2/ssl/$SECUREFQDN.key
+
+  <Location /$SITE>
+    JkUriSet worker ajp13:localhost:8009
+  </Location>
+  <Directory $PRODUCTIONDIR>
+    Options Indexes IncludesNoExec FollowSymLinks MultiViews
+    IndexOptions +SuppressHTMLPreamble +SuppressDescription
+    AddHandler server-parsed .html
+    AddType 'text/html; charset=utf-8' .html
+    AllowOverride None
+    Order allow,deny
+    Allow from all  
+  </Directory>
+  # Apache gzip compression
+  <Location />
+    # This is taken from here: 
+    # http://httpd.apache.org/docs-2.0/mod/mod_deflate.html
+    # Insert filter
+    SetOutputFilter DEFLATE
+    # Netscape 4.x has some problems...
+    BrowserMatch ^Mozilla/4 gzip-only-text/html
+    # Netscape 4.06-4.08 have some more problems
+    BrowserMatch ^Mozilla/4\.0[678] no-gzip
+    # MSIE masquerades as Netscape, but it is fine
+    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
+    # Don't compress images
+    SetEnvIfNoCase Request_URI \
+    \.(?:gif|jpe?g|png)$ no-gzip dont-vary
+    # Make sure proxies don't deliver the wrong content
+    Header append Vary User-Agent env=!dont-vary
+  </Location>
+</VirtualHost>