Commit e138f3dc authored by Patrick J Cherry's avatar Patrick J Cherry
Browse files

httpd: Add ErrorDocument handling on / in non-mass-hosting templates

This closes #79
parent a531dfdf
......@@ -27,6 +27,25 @@
#
<%= server_aliases %>
#
# This is the directory people are redirected to if their site is
# empty.
#
Alias /bytemark/ "/usr/share/symbiosis/static/"
<Directory "/usr/share/symbiosis/static/">
DirectoryIndex index.html
AllowOverride All
Require all granted
</Directory>
#
# And this makes that redirection happen.
#
<LocationMatch "^/+$">
Options -Indexes
ErrorDocument 403 /bytemark/
</LocationMatch>
#
# Allow users to override settings via .htaccess
#
......
......@@ -31,6 +31,24 @@
#
<%= server_aliases %>
#
# This is the directory people are redirected to if their site is
# empty.
#
Alias /bytemark/ "/usr/share/symbiosis/static/"
<Directory "/usr/share/symbiosis/static/">
DirectoryIndex index.html
AllowOverride All
Require all granted
</Directory>
#
# And this makes that redirection happen.
#
<LocationMatch "^/+$">
Options -Indexes
ErrorDocument 403 /bytemark/
</LocationMatch>
<IfModule ssl_module>
SSLEngine On
......@@ -123,6 +141,25 @@
#
<%= server_aliases %>
#
# This is the directory people are redirected to if their site is
# empty.
#
Alias /bytemark/ "/usr/share/symbiosis/static/"
<Directory "/usr/share/symbiosis/static/">
DirectoryIndex index.html
AllowOverride All
Require all granted
</Directory>
#
# And this makes that redirection happen.
#
<LocationMatch "^/+$">
Options -Indexes
ErrorDocument 403 /bytemark/
</LocationMatch>
% if mandatory_ssl?
<IfModule rewrite_module>
#
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment