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