Skip to content

Instantly share code, notes, and snippets.

@bangline
Created August 26, 2012 23:45
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 bangline/3484427 to your computer and use it in GitHub Desktop.
Save bangline/3484427 to your computer and use it in GitHub Desktop.
Example apache2 conf
<VirtualHost *:80>
# Admin email, Server Name (domain name) and any aliases
ServerName ci.example.com
# Index file and Document Root (where the public files are located)
DocumentRoot /home/user/cijoe
<Directory /home/user/cijoe>
Options -MultiViews
AuthType Basic
AuthName "CI"
AuthUserFile /home/user/.htpasswd-private
Require valid-user
Satisfy any
Deny from all
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment