First attempt to get multi-static work

This commit is contained in:
Pierre-Yves Chibon 2017-08-09 11:25:53 +02:00
parent 4ba623caba
commit 8cd38d6a4a

View file

@ -44,3 +44,12 @@ WSGIDaemonProcess pagureproc user=pagure group=packager maximum-requests=1000 di
</Location>
#</VirtualHost>
RewriteEngine on
# First try the instance-specific theme
RewriteCond "/usr/share/pagure_dist_git/static/$1" -f
RewriteRule "^/static/(.*)" "/usr/share/pagure_dist_git/static/$1" [L]
# Use the application default theme for files not customized
RewriteRule "^/static/(.*)" "/usr/lib/python2.7/site-packages/pagure/static/$1" [L]