* scripts/mir-setup/conf: updated to use tomcat5.5
[mir.git] / scripts / mir-setup / conf / site-httpd.conf
1 # Editor: vim:syn=apache
2 # $FQDN
3 <VirtualHost *:80>
4   ServerAdmin $USER@$FQDN
5   DocumentRoot $PRODUCTIONDIR
6   ServerName $FQDN
7   ServerAlias $MIRRORFQDN
8   ServerAlias $ALIAS
9
10   CustomLog /var/log/apache2/$SITE.log anon
11
12 # Back end should only be accessed via SSL; bounce to enforce this
13   Redirect /$SITE/servlet/Mir https://$SECUREFQDN/$SITE/servlet/Mir
14
15   JkMount /$SITE/*  ajp13_worker
16   <Directory $PRODUCTIONDIR>
17     Options Indexes IncludesNoExec FollowSymLinks MultiViews
18     IndexOptions +SuppressHTMLPreamble +SuppressDescription
19     AddHandler server-parsed .html
20     AddType 'text/html; charset=utf-8' .html
21     AllowOverride None
22     Order allow,deny
23     Allow from all  
24   </Directory>
25   # Apache gzip compression
26   <Location />
27     # This is taken from here: 
28     # http://httpd.apache.org/docs-2.0/mod/mod_deflate.html
29     # Insert filter
30     SetOutputFilter DEFLATE
31     # Netscape 4.x has some problems...
32     BrowserMatch ^Mozilla/4 gzip-only-text/html
33     # Netscape 4.06-4.08 have some more problems
34     BrowserMatch ^Mozilla/4\.0[678] no-gzip
35     # MSIE masquerades as Netscape, but it is fine
36     BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
37     # Don't compress images
38     SetEnvIfNoCase Request_URI \
39     \.(?:gif|jpe?g|png)$ no-gzip dont-vary
40     # Make sure proxies don't deliver the wrong content
41     Header append Vary User-Agent env=!dont-vary
42   </Location>
43 </VirtualHost>
44
45 Include /etc/apache2/mir-sites/ssl-dedicated/$SITE.conf