add static rewrite rules to all the virtual hosts

This commit is contained in:
Tim Flink 2017-05-23 04:21:27 +00:00
parent acb5a6627a
commit 1efd997013

View file

@ -78,6 +78,16 @@ WSGIDaemonProcess paguredocs user=git group=git maximum-requests=1000 display-na
git-(upload|receive)-pack))$" \
/usr/libexec/git-core/git-http-backend/$1
# Configure static files so that a custom theme can override the defaults
RewriteCond "{{ pagure_theme_static_dir }}/$1" -f
RewriteRule "^/static/(.*)" "{{ pagure_theme_static_dir }}/$1" [L]
# Use the application default theme for files not customized
RewriteRule "^/static/(.*)" "/usr/lib/python2.7/site-packages/pagure/static/$1" [L]
<Location />
WSGIProcessGroup pagure
<IfModule mod_authz_core.c>