From 08152258f0ce02fcd1c2ad132b0f4a715fcb7a06 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Mon, 8 Dec 2014 20:43:55 +0000 Subject: [PATCH] Special-case pkgdb (reverseproxy). --- .../templates/reversepassproxy.pkgdb.conf | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 roles/httpd/reverseproxy/templates/reversepassproxy.pkgdb.conf diff --git a/roles/httpd/reverseproxy/templates/reversepassproxy.pkgdb.conf b/roles/httpd/reverseproxy/templates/reversepassproxy.pkgdb.conf new file mode 100644 index 0000000000..c1cf163030 --- /dev/null +++ b/roles/httpd/reverseproxy/templates/reversepassproxy.pkgdb.conf @@ -0,0 +1,39 @@ +# Temporary fix for pkgdb performance issue. Fix for pkgdb #206 + +RewriteEngine On +RewriteCond %{QUERY_STRING} tg_paginate_limit=0 +RewriteRule ^/pkgdb/builds/name/\* /pkgdb/builds/name/*?tg_paginate_limit=50 [R] + +RequestHeader set X-Scheme https early + + + +RequestHeader set CP-Location {{localpath}} + +AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript + + + + ExpiresActive On + ExpiresDefault "access plus 5 days" + AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript + + + + ExpiresActive On + ExpiresDefault "access plus 5 days" + AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript + + + + ExpiresActive On + ExpiresDefault "access plus 5 days" + AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript + + + +Header unset Set-Cookie + + +ProxyPass {{localpath}} {{proxyurl}}{{remotepath}} +ProxyPassReverse {{localpath}} {{proxyurl}}{{remotepath}}