turning on rewrite engine helps when using rewrites

This commit is contained in:
Tim Flink 2017-05-23 04:24:32 +00:00
parent 1efd997013
commit 2fb93d39c4

View file

@ -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]