Copy mir-setup to 1.1 branch
[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 $ALIAS
8
9   CustomLog /var/log/apache2/$SITE.log combined
10
11 # Back end should only be accessed via SSL; bounce to enforce this
12   Redirect /$SITE/servlet/Mir https://$SECUREFQDN/$SITE/servlet/Mir
13   
14   <Location /$SITE>
15     JkUriSet worker ajp13:localhost:8009
16   </Location>
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>