Allow Apache to serve Plinth's static files correctly.

When the */plinth/static* configuration is above */plinth*, it doesn't
work.  Move it below the */plinth* configuration so static files will
be served correctly.
This commit is contained in:
Nick Daly 2013-11-10 16:31:23 -06:00
parent 574edb93cd
commit 827defed77

View File

@ -24,15 +24,6 @@
## Shared options.
ProxyPreserveHost on
DocumentRoot /usr/share/plinth
ProxyPass /plinth/static !
<Location /plinth/static>
Order Deny,Allow
Deny from All
Allow from 10.0.0.0/8
Allow from 172.16.0.0/12
Allow from 192.168.0.0/16
Require all granted
</Location>
## Use this rule to hang plinth off of plinth.(servername)
# ServerName plinth
@ -59,5 +50,14 @@
Allow from 172.16.0.0/12
Allow from 192.168.0.0/16
</Location>
ProxyPass /plinth/static !
<Location /plinth/static>
Order Deny,Allow
Deny from All
Allow from 10.0.0.0/8
Allow from 172.16.0.0/12
Allow from 192.168.0.0/16
Require all granted
</Location>
</VirtualHost>