Copy mir-setup to 1.1 branch
[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
8   SSLEngine on
9   SSLCertificateFile /etc/apache2/ssl/$SECUREFQDN.crt
10   SSLCertificateKeyFile /etc/apache2/ssl/$SECUREFQDN.key
11
12   <Location /$SITE>
13     JkUriSet worker ajp13:localhost:8009
14   </Location>
15   <Directory $PRODUCTIONDIR>
16     Options Indexes IncludesNoExec FollowSymLinks MultiViews
17     IndexOptions +SuppressHTMLPreamble +SuppressDescription
18     AddHandler server-parsed .html
19     AddType 'text/html; charset=utf-8' .html
20     AllowOverride None
21     Order allow,deny
22     Allow from all  
23   </Directory>
24   # Apache gzip compression
25   <Location />
26     # This is taken from here: 
27     # http://httpd.apache.org/docs-2.0/mod/mod_deflate.html
28     # Insert filter
29     SetOutputFilter DEFLATE
30     # Netscape 4.x has some problems...
31     BrowserMatch ^Mozilla/4 gzip-only-text/html
32     # Netscape 4.06-4.08 have some more problems
33     BrowserMatch ^Mozilla/4\.0[678] no-gzip
34     # MSIE masquerades as Netscape, but it is fine
35     BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
36     # Don't compress images
37     SetEnvIfNoCase Request_URI \
38     \.(?:gif|jpe?g|png)$ no-gzip dont-vary
39     # Make sure proxies don't deliver the wrong content
40     Header append Vary User-Agent env=!dont-vary
41   </Location>
42 </VirtualHost>