Skip to content

Instantly share code, notes, and snippets.

@mrchrisadams
Created December 7, 2010 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrchrisadams/731814 to your computer and use it in GitHub Desktop.
Save mrchrisadams/731814 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
ServerAdmin support@headshift.com
DocumentRoot /srv/html/project/current
DirectoryIndex index.php
ServerName networking.headshift.project.org.uk
ErrorLog logs/networking.project.staging-error_log
CustomLog logs/networking.project.staging-acess_log common
DirectoryIndex index.php
#RewriteEngine on
# Drupal CleanURLs
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
<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 from 212.161.9.162
Satisfy Any
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment