diff --git a/roles/distgit/pagure/templates/z_pagure.conf b/roles/distgit/pagure/templates/z_pagure.conf index 4ccdf28b8e..408bbc6351 100644 --- a/roles/distgit/pagure/templates/z_pagure.conf +++ b/roles/distgit/pagure/templates/z_pagure.conf @@ -44,3 +44,12 @@ WSGIDaemonProcess pagureproc user=pagure group=packager maximum-requests=1000 di # + +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]