From 153a58a6634190f5e274ee961006ea2cdc35a0f7 Mon Sep 17 00:00:00 2001 From: Omri Marcovitch Date: Mon, 15 Dec 2014 17:03:37 +0200 Subject: [PATCH] Add Third Party FAQ paragraph Change-Id: If36996357e7559df034438a56eb44edcd1bf7c87 Signed-off-by: Omri Marcovitch --- doc/source/third_party.rst | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/doc/source/third_party.rst b/doc/source/third_party.rst index b5a8a19f69..1a4356a251 100644 --- a/doc/source/third_party.rst +++ b/doc/source/third_party.rst @@ -329,3 +329,22 @@ chance of success if you follow these steps: your system should be able to vote, the release group for that program or project can add you to the -ci group specific to that program/project. + +Third Party - FAQ +----------------- + +* Q: How do you serve the content of compressed logs so they are rendered within + the browser, rather than presenting a download prompt to the user? + + A: Add the following lines to your web server conf file:: + + RewriteEngine On + RewriteCond %{HTTP:Accept-Encoding} gzip + RewriteCond %{LA-U:REQUEST_FILENAME}.gz -f + RewriteRule ^(.+)$ $1.gz [L] + + ForceType text/html + AddDefaultCharset UTF-8 + AddEncoding x-gzip gz + +