Use apache 2.4 style access controls
[chef.git] / cookbooks / cgiirc / templates / default / apache.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 <VirtualHost *:80>
4         ServerName <%= @name %>
5         ServerAdmin webmaster@openstreetmap.org
6
7         CustomLog /var/log/apache2/<%= @name %>-access.log combined
8         ErrorLog /var/log/apache2/<%= @name %>-error.log
9
10         DocumentRoot /usr/lib/cgi-bin/cgiirc
11         DirectoryIndex irc.cgi
12         Alias /images /usr/share/images/cgiirc
13
14         <Directory "/usr/lib/cgi-bin/cgiirc">
15                 AddHandler cgi-script .cgi
16                 Require all granted
17         </Directory>
18
19         <Directory "/usr/share/images/cgiirc">
20                 Require all granted
21         </Directory>
22
23         <IfModule mod_deflate.c>
24                 RemoveOutputFilter DEFLATE
25                 SetEnv no-gzip
26         </IfModule>
27 </VirtualHost>