From 1dfddad1150948893c84515871a63b4a000323a6 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sat, 22 Oct 2016 11:44:03 +0200 Subject: [PATCH] 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 --- modules/openstack_project/templates/docs.vhost.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/openstack_project/templates/docs.vhost.erb b/modules/openstack_project/templates/docs.vhost.erb index 31f345be39..1dc78bb37b 100644 --- a/modules/openstack_project/templates/docs.vhost.erb +++ b/modules/openstack_project/templates/docs.vhost.erb @@ -20,6 +20,7 @@ NameVirtualHost <%= @vhost_name %>:<%= @port %> Require all granted # Allow mod_rewrite rules AllowOverride FileInfo + ErrorDocument 404 /errorpage.html ErrorLog /var/log/<%= scope.lookupvar("httpd::params::apache_name") %>/<%= @name %>_error.log