Created
June 29, 2017 15:30
-
-
Save felds/af10b3e35d581b0e95ca8933a0b5bf3b to your computer and use it in GitHub Desktop.
Protecting vhost
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| user:pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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