1 # Editor: vim:syn=apache
3 <VirtualHost $SECUREFQDN:443>
4 ServerAdmin $USER@$FQDN
5 DocumentRoot $PRODUCTIONDIR
7 ServerAlias $MIRRORFQDN
11 SSLCertificateFile /etc/apache2/ssl/$SECUREFQDN.crt
12 SSLCertificateKeyFile /etc/apache2/ssl/$SECUREFQDN.key
14 CustomLog /var/log/apache2/$SITE-ssl.log anon
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
26 # Apache gzip compression
28 # This is taken from here:
29 # http://httpd.apache.org/docs-2.0/mod/mod_deflate.html
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