summaryrefslogtreecommitdiff
path: root/templates/error.erb
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2009-11-08 20:23:16 -0200
committerSilvio Rhatto <rhatto@riseup.net>2009-11-08 20:23:16 -0200
commit3d80a9fc39137f235c0527d77acfa4c4e4706624 (patch)
tree35bf36c9609e00829f6aaea2a51f7d6de71982b1 /templates/error.erb
parent49b5e7da0671ff84e73544c711e7f87fbb58ec36 (diff)
downloadpuppet-apache-3d80a9fc39137f235c0527d77acfa4c4e4706624.tar.gz
puppet-apache-3d80a9fc39137f235c0527d77acfa4c4e4706624.tar.bz2
Adding template for error page
Diffstat (limited to 'templates/error.erb')
-rw-r--r--templates/error.erb14
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/error.erb b/templates/error.erb
new file mode 100644
index 0000000..5e2cf5f
--- /dev/null
+++ b/templates/error.erb
@@ -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