From 21a11326f41e9bf90e7362be5eb0707a83618668 Mon Sep 17 00:00:00 2001 From: Joshua Hesketh Date: Tue, 21 Oct 2014 21:12:16 +1100 Subject: [PATCH] Update comment in logs.vhost Update the comment regarding htmlify to say what really happens. Matching all .html.gz files isn't done since it messes with testr results. Also fix the line wrap to 80cols Change-Id: I7aaa50610f1ca5418d3d4a3bbe21de58ad8036b4 --- modules/openstack_project/templates/logs.vhost.erb | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/modules/openstack_project/templates/logs.vhost.erb b/modules/openstack_project/templates/logs.vhost.erb index a6df51cc0d..64c4b98ea4 100644 --- a/modules/openstack_project/templates/logs.vhost.erb +++ b/modules/openstack_project/templates/logs.vhost.erb @@ -58,11 +58,14 @@ NameVirtualHost <%= vhost_name %>:<%= port %> RewriteEngine On - # rewrite all txt.gz & html.gz files to map to our internal htmlify wsgi app - # PT, Pass-through: to come back around and get picked up by the WSGIScriptAlias - # NS, No-subrequest: on coming back through, mod-autoindex may have added index.html - # which would match the !-f condition. We therefore ensure the - # rewrite doesn't trigger by disallowing subrequests. + # rewrite txt.gz & console.html[.gz] files to map to our internal htmlify + # wsgi app + # PT, Pass-through: to come back around and get picked up by the + # WSGIScriptAlias + # NS, No-subrequest: on coming back through, mod-autoindex may have added + # index.html which would match the !-f condition. We + # therefore ensure the rewrite doesn't trigger by + # disallowing subrequests. RewriteRule ^/(.*\.txt\.gz)$ /htmlify/$1 [QSA,L,PT,NS] RewriteRule ^/(.*console\.html(\.gz)?)$ /htmlify/$1 [QSA,L,PT,NS]