add static rewrite rules to all the virtual hosts
This commit is contained in:
parent
acb5a6627a
commit
1efd997013
1 changed files with 10 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue