doc: explain how to server themes files from Apache (#1970)

This commit is contained in:
Frédéric Péters 2012-11-20 09:27:18 +01:00 committed by Thomas NOEL
parent 4915edee37
commit 82d2590af3
1 changed files with 9 additions and 1 deletions

10
INSTALL
View File

@ -39,7 +39,15 @@ package installs a init.d script automatically.
<LocationMatch "^/(css|images|js|qo)/.*">
SCGIHandler off
</LocationMatch>
# this part allows serving the themes directly from Apache, but it
# requires mod_rewrite
Alias /themes/ /usr/share/wcs/themes/
RewriteEngine On
RewriteCond /usr/share/wcs/%{REQUEST_URI} !-f
RewriteCond /usr/share/wcs/%{REQUEST_URI} !-d
RewriteRule ^/themes/(.*)$ /var/lib/wcs/%{HTTP_HOST}/themes/$1
CustomLog /var/log/apache2/wcs-access.log combined
ErrorLog /var/log/apache2/wcs-error.log