Created
August 25, 2020 10:03
-
-
Save tuxmartin/1491989d0cfd95084f137861530dbc6c to your computer and use it in GitHub Desktop.
apache http basic auth for url wp-login.php
This file contains 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
# --- HTTP BASIC AUTH /wp-login.php ------------------ | |
SetEnvIf Request_URI "/wp-login.php" auth=1 | |
AuthName "Please login." | |
AuthType Basic | |
AuthUserFile /var/www/.htpasswd | |
Order Allow,Deny | |
Satisfy any | |
Allow from all | |
Require valid-user | |
Deny from env=auth | |
# --- HTTP BASIC AUTH /wp-login.php ------------------ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment