Instantly share code, notes, and snippets.

What would you like to do?
Example apache2 conf
<VirtualHost *:80>
# Admin email, Server Name (domain name) and any aliases
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment