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