This commit is contained in:
Stefan Wieczorek
2025-02-26 10:55:27 +01:00
parent 46d16dd498
commit 3dbfed6e92
4 changed files with 20 additions and 0 deletions

View File

@@ -35,6 +35,11 @@ server {
deny all;
}
# Uncomment the following to exclude admin-ajax.php from basic auth if it breaks frontend functionality.
#location ~* ^/wp-admin/admin-ajax\.php$ {
# auth_basic off;
#}
location ~/(wp-admin/|wp-login.php) {
#auth_basic "Restricted Area";
#auth_basic_user_file /home/site-user/.htpasswd;