Change DocumentRoot in apache configuration, and add permissions for /static.

This commit is contained in:
James Valleroy 2013-10-20 09:04:31 -04:00
parent 13bbe7ea25
commit f18d4a9e48

View File

@ -22,7 +22,7 @@
## Use this rule to hang plinth off of plinth.(servername) ## Use this rule to hang plinth off of plinth.(servername)
## The DocumentRoot is set by fabric ## The DocumentRoot is set by fabric
DocumentRoot /home/fbx/plinth/static DocumentRoot /home/fbx/plinth
ServerName plinth ServerName plinth
ServerAlias plinth.* ServerAlias plinth.*
ProxyPreserveHost on ProxyPreserveHost on
@ -36,6 +36,14 @@
Allow from 172.16.0.0/12 Allow from 172.16.0.0/12
Allow from 192.168.0.0/16 Allow from 192.168.0.0/16
</Proxy> </Proxy>
<Location /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 a subdir. ## Use this rule to hang plinth off a subdir.
## Make sure to provide plinth with a default directory: /plinth ## Make sure to provide plinth with a default directory: /plinth