mirror of
https://github.com/cloudpanel-io/vhost-templates.git
synced 2026-05-18 08:23:31 +08:00
.
This commit is contained in:
@@ -27,6 +27,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;
|
||||
|
||||
@@ -31,6 +31,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;
|
||||
|
||||
Reference in New Issue
Block a user