mirror of
https://github.com/cloudpanel-io/vhost-templates.git
synced 2026-05-18 16:33:30 +08:00
.
This commit is contained in:
@@ -32,6 +32,8 @@ server {
|
||||
}
|
||||
|
||||
location ~/(wp-admin/|wp-login.php) {
|
||||
#auth_basic "Restricted Area";
|
||||
#auth_basic_user_file /home/site-user/.htpasswd;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
|
||||
@@ -32,6 +32,8 @@ server {
|
||||
}
|
||||
|
||||
location ~/(wp-admin/|wp-login.php) {
|
||||
#auth_basic "Restricted Area";
|
||||
#auth_basic_user_file /home/site-user/.htpasswd;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
|
||||
Reference in New Issue
Block a user