summaryrefslogtreecommitdiff
path: root/templates/error.erb
blob: 9f13fd9e4d29bdb12dd3623fce74437b1a864604 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# vhost to handle inexistent vhosts
<VirtualHost *:<%= scope.lookupvar('apache::http_port') %>>
  ServerName error.<%= hosting_domain %>
  ServerAlias *.<%= hosting_domain %>
  DocumentRoot <%= scope.lookupvar('apache::error_folder') %>
  ErrorDocument 404 <%= scope.lookupvar('apache::error_dest') %>

  <Directory <%= scope.lookupvar('apache::error_folder') %>>
    DirectoryIndex index.html
    Options Indexes -Includes FollowSymLinks -MultiViews
    AllowOverride None
  </Directory>
</VirtualHost>
# end of vhost to handle inexistent vhosts