]> gitweb.fluxo.info Git - puppet-apache.git/commitdiff
Adding template for error page
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 8 Nov 2009 22:23:16 +0000 (20:23 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 8 Nov 2009 22:23:16 +0000 (20:23 -0200)
templates/error.erb [new file with mode: 0644]

diff --git a/templates/error.erb b/templates/error.erb
new file mode 100644 (file)
index 0000000..5e2cf5f
--- /dev/null
@@ -0,0 +1,14 @@
+# vhost to handle inexistent vhosts
+<VirtualHost *:80>
+  ServerName error.<%= domain %>
+  ServerAlias *.<%= domain %>
+  DocumentRoot <%= apache_error_folder %>
+  ErrorDocument 404 <%= apache_error_dest %>
+
+  <Directory /var/www/error>
+    DirectoryIndex index.html
+    Options Indexes -Includes FollowSymLinks -MultiViews
+    AllowOverride None
+  </Directory>
+</VirtualHost>
+# end of vhost to handle inexistent vhosts