1 # Editor: vim:syn=apache
4 ServerAdmin $USER@$FQDN
5 DocumentRoot $PRODUCTIONDIR
7 ServerAlias $MIRRORFQDN
10 CustomLog /var/log/apache2/$SITE.log anon
12 # Back end should only be accessed via SSL; bounce to enforce this
13 Redirect /$SITE/servlet/Mir https://$SECUREFQDN/$SITE/servlet/Mir
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
25 # Apache gzip compression
27 # This is taken from here:
28 # http://httpd.apache.org/docs-2.0/mod/mod_deflate.html
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
45 Include /etc/apache2/mir-sites/ssl-dedicated/$SITE.conf