diff options
author | Tim Flink <tflink@fedoraproject.org> | 2017-05-23 04:24:32 +0000 |
---|---|---|
committer | Tim Flink <tflink@fedoraproject.org> | 2017-05-23 04:24:32 +0000 |
commit | 2fb93d39c49459f85274c5f682319ee12605708c (patch) | |
tree | b65ec9aa03f167e6501434953e0cb3f967c86b34 | |
parent | 1efd997013bc267f81249d48924857c412a0a227 (diff) | |
download | ansible-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.conf | 2 |
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] |