Skip to content

Instantly share code, notes, and snippets.

@dtateii
Last active August 29, 2015 14:25
Show Gist options
  • Save dtateii/2e2bf7582fb8126f28bf to your computer and use it in GitHub Desktop.
Save dtateii/2e2bf7582fb8126f28bf to your computer and use it in GitHub Desktop.
Rackspace Cloud Sites – Restrict File Access to Client IP passed through from Load Balancer
# BEGIN Files Restrict
<Files {sensitive-file.php}>
Order deny,allow
Deny from all
allow from env=allowclient
SetEnvIf X-Cluster-Client-Ip {nnn.nnn.nnn.nnn} allowclient
</Files>
# END Files Restrict
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment