Answer the question
In order to leave comments, you need to log in
How can you get a value from listen?
There is a structure in nginx.conf like this:
server_name site.ru www.site.ru;
listen 111.10.111.0;
charset CP1251;
disable_symlinks if_not_owner from=$root_path;
include file.conf;
location ~ ^/(wp-admin|wp-login\.php|admin|administrator) {
limit_req zone=wp burst=4 nodelay;
proxy_pass http://1.1.1.1:81;
proxy_redirect http://1.1.1.1:81/ /;
proxy_set_header Host $host;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question