Skip to content

Instantly share code, notes, and snippets.

@felds
Created June 29, 2017 15:30
Show Gist options
  • Select an option

  • Save felds/af10b3e35d581b0e95ca8933a0b5bf3b to your computer and use it in GitHub Desktop.

Select an option

Save felds/af10b3e35d581b0e95ca8933a0b5bf3b to your computer and use it in GitHub Desktop.
Protecting vhost
<VirtualHost *:80>
# vhost config here
<Location />
AuthType Basic
AuthName "restricted area"
AuthUserFile [path-to-passwd-file]
require valid-user
</Location>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment