При переходе по адрессу
https://fgresdvrerve.site.ru
показывается форма авторизации isp панели. Нужно чтобы панель показывалась только по адресу
https://123.321.22.44
Конфиг nginx isp панели:
server {
listen 123.321.22.44:80;
server_name 123.321.22.44;
return 301 https://$host:443$request_uri;
}
server {
listen 123.321.22.44:443;
server_name 123.321.22.44;
ssl on;
ssl_certificate /usr/local/mgr5/etc/manager.crt;
ssl_certificate_key /usr/local/mgr5/etc/manager.key;
set $mgr_proxy "https://123.321.22.44:1500";
location ^~ /manimg/ {
alias /usr/local/mgr5/skins/;
}
location / {
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-Forwarded-Secret gfdhxtfdhgfhgfhgf;
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-Forwarded-Secret gfdhxtfdhgfhgfhgf;
chunked_transfer_encoding off;
}
include /etc/nginx/vhosts-includes/*.conf;
}