mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-08-26 12:46:08 +00:00
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:
parent
574edb93cd
commit
827defed77
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user