summaryrefslogtreecommitdiff
path: root/templates/error.erb
blob: 4e13d60e4d97652e3ae45fc77b886ce6a172a145 (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