]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/stats/templates/default/apache.erb
Bring stats.openstreetmap.org under chef control
[chef.git] / cookbooks / stats / templates / default / apache.erb
diff --git a/cookbooks/stats/templates/default/apache.erb b/cookbooks/stats/templates/default/apache.erb
new file mode 100644 (file)
index 0000000..328b89b
--- /dev/null
@@ -0,0 +1,28 @@
+# DO NOT EDIT - This file is being maintained by Chef
+
+<VirtualHost *:80>
+       ServerName stats.openstreetmap.org
+       ServerAlias stats.osm.org
+       ServerAdmin webmaster@openstreetmap.org
+
+       CustomLog /var/log/apache2/stats.openstreetmap.org-access.log combined
+       ErrorLog /var/log/apache2/stats.openstreetmap.org-error.log
+
+       DocumentRoot <%= @directory %>
+       Alias /awstats-icon/ /usr/share/awstats/icon/
+       ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
+</VirtualHost>
+
+<Directory /var/lib/awstats>
+       Options None
+       AllowOverride None
+       Order allow,deny
+       Allow from all
+</Directory>
+
+<Directory /usr/share/awstats/icon>
+       Options None
+       AllowOverride None
+       Order allow,deny
+       Allow from all
+</Directory>