Add ErrorDocument for docs.o.o

We now have an errordocument, enable using it for 404 errors.

The content is served from openstack-manuals.

Alternative would be to use .htaccess but then the page would be
available on both old and new pages - and the content is specific to the
new AFS based page. Therefore, I choose to use ErrorDocument here.

Change-Id: Iefa7c4453f05071dd990a5ae8a29d2648bb797d9
This commit is contained in:
Andreas Jaeger 2016-10-22 11:44:03 +02:00
parent 3a80de20fc
commit 1dfddad115

View File

@ -20,6 +20,7 @@ NameVirtualHost <%= @vhost_name %>:<%= @port %>
Require all granted Require all granted
# Allow mod_rewrite rules # Allow mod_rewrite rules
AllowOverride FileInfo AllowOverride FileInfo
ErrorDocument 404 /errorpage.html
</Directory> </Directory>
ErrorLog /var/log/<%= scope.lookupvar("httpd::params::apache_name") %>/<%= @name %>_error.log ErrorLog /var/log/<%= scope.lookupvar("httpd::params::apache_name") %>/<%= @name %>_error.log