* scripts/mir-setup/conf: updated to use tomcat5.5
[mir.git] / scripts / mir-setup / conf / tomcat4 / site-httpd.conf
diff --git a/scripts/mir-setup/conf/tomcat4/site-httpd.conf b/scripts/mir-setup/conf/tomcat4/site-httpd.conf
new file mode 100755 (executable)
index 0000000..87f0921
--- /dev/null
@@ -0,0 +1,44 @@
+# Editor: vim:syn=apache
+# $FQDN
+<VirtualHost *:80>
+  ServerAdmin $USER@$FQDN
+  DocumentRoot $PRODUCTIONDIR
+  ServerName $FQDN
+  ServerAlias $ALIAS
+
+  CustomLog /var/log/apache2/$SITE.log combined
+
+# Back end should only be accessed via SSL; bounce to enforce this
+  Redirect /$SITE/servlet/Mir https://$SECUREFQDN/$SITE/servlet/Mir
+  
+  <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>