История изменений
Исправление
Amet13,
(текущая версия)
:
Но к каждому виртуальному хосту инклудится этот файл:
# cat /usr/local/ispmgr/etc/nginx.inc
set $mgr_proxy "http://123.123.123.123:1500";
location ^~ /manimg/ {
alias /usr/local/ispmgr/skins/;
}
location ^~ /manager {
proxy_pass $mgr_proxy;
proxy_redirect $mgr_proxy /;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Manager-Path /manager;
proxy_set_header X-Secret yzyuCICQM8pkQ44eCHghHUry;
chunked_transfer_encoding off;
}
location ^~ /mancgi/ {
proxy_pass $mgr_proxy;
proxy_redirect $mgr_proxy /;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Secret yzyuCICQM84eCHghHUry;
chunked_transfer_encoding off;
}
if ($allowed_country = no) {
return 444;
}
Дописал, вроде помогло.
Исправление
Amet13,
:
Но к каждому виртуальному хосту инклудится этот файл:
cat/usr/local/ispmgr/etc/nginx.inc
set $mgr_proxy "http://123.123.123.123:1500";
location ^~ /manimg/ {
alias /usr/local/ispmgr/skins/;
}
location ^~ /manager {
proxy_pass $mgr_proxy;
proxy_redirect $mgr_proxy /;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Manager-Path /manager;
proxy_set_header X-Secret yzyuCICQM8pkQ44eCHghHUry;
chunked_transfer_encoding off;
}
location ^~ /mancgi/ {
proxy_pass $mgr_proxy;
proxy_redirect $mgr_proxy /;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Secret yzyuCICQM84eCHghHUry;
chunked_transfer_encoding off;
}
if ($allowed_country = no) {
return 444;
}
Дописал, вроде помогло.
Исходная версия
Amet13,
:
Но к каждому виртуальному хосту инклудится этот файл:
cat/usr/local/ispmgr/etc/nginx.inc
set $mgr_proxy "http://123.123.123.123:1500";
location ^~ /manimg/ {
alias /usr/local/ispmgr/skins/;
}
location ^~ /manager {
proxy_pass $mgr_proxy;
proxy_redirect $mgr_proxy /;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Manager-Path /manager;
proxy_set_header X-Secret yzyuCICQM8pkQ44eCHghHUry;
chunked_transfer_encoding off;
}
location ^~ /mancgi/ {
proxy_pass $mgr_proxy;
proxy_redirect $mgr_proxy /;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Secret yzyuCICQM84eCHghHUry;
chunked_transfer_encoding off;
}
if ($allowed_country = no) {
return 444;
}