Create a gist now

Instantly share code, notes, and snippets.

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