Skip to content

Instantly share code, notes, and snippets.

@mrchrisadams
Created December 7, 2010 14:04
Show Gist options
  • Save mrchrisadams/731812 to your computer and use it in GitHub Desktop.
Save mrchrisadams/731812 to your computer and use it in GitHub Desktop.
<Directory /srv/html/project/>
Options -Indexes
AllowOverride All
AuthType Basic
AuthName "project API Staging"
AuthUserFile /var/www/auth/passwd
Require user project
Order allow,deny
Allow from project.org.uk # allow other sites on domain to connect to it
Allow from 212.161.9.162 # allow my external facing ip to hit it
Satisfy Any
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment