summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Flink <tflink@fedoraproject.org>2017-05-23 04:24:32 +0000
committerTim Flink <tflink@fedoraproject.org>2017-05-23 04:24:32 +0000
commit2fb93d39c49459f85274c5f682319ee12605708c (patch)
treeb65ec9aa03f167e6501434953e0cb3f967c86b34
parent1efd997013bc267f81249d48924857c412a0a227 (diff)
downloadansible-2fb93d39c49459f85274c5f682319ee12605708c.tar.gz
ansible-2fb93d39c49459f85274c5f682319ee12605708c.tar.xz
ansible-2fb93d39c49459f85274c5f682319ee12605708c.zip
turning on rewrite engine helps when using rewrites
-rw-r--r--roles/pagure/upstreamfirst-frontend/templates/0_pagure.conf2
1 files changed, 2 insertions, 0 deletions
diff --git a/roles/pagure/upstreamfirst-frontend/templates/0_pagure.conf b/roles/pagure/upstreamfirst-frontend/templates/0_pagure.conf
index 5398bb127..dc1dbefb4 100644
--- a/roles/pagure/upstreamfirst-frontend/templates/0_pagure.conf
+++ b/roles/pagure/upstreamfirst-frontend/templates/0_pagure.conf
@@ -79,6 +79,7 @@ WSGIDaemonProcess paguredocs user=git group=git maximum-requests=1000 display-na
/usr/libexec/git-core/git-http-backend/$1
# Configure static files so that a custom theme can override the defaults
+ RewriteEngine on
RewriteCond "{{ pagure_theme_static_dir }}/$1" -f
RewriteRule "^/static/(.*)" "{{ pagure_theme_static_dir }}/$1" [L]
@@ -128,6 +129,7 @@ WSGIDaemonProcess paguredocs user=git group=git maximum-requests=1000 display-na
SSLProtocol ALL -SSLv2
# Configure static files so that a custom theme can override the defaults
+ RewriteEngine on
RewriteCond "{{ pagure_theme_static_dir }}/$1" -f
RewriteRule "^/static/(.*)" "{{ pagure_theme_static_dir }}/$1" [L]