A
A
AlexRas2019-11-21 12:36:43
Nginx
AlexRas, 2019-11-21 12:36:43

Isp manager authorization form is shown on non-existent subdomains, how to remove it?

When you click on the address https://fgresdvrerve.site.ru, the isp panel authorization form is shown. It is necessary that the panel is shown only at the address https://123.321.22.44
nginx isp config panel:

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;
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AlexRas, 2019-11-21
@AlexRas

To file:
Replace everything with (you only need to substitute your ip addresses):

server {
  server_name 123.321.44.55;
  listen 123.321.44.55:80 default_server;
  listen [gffd:hter:3:6:7::gfdf]:80 default_server;
}
server {
  server_name 123.321.44.55;
  ssl_certificate /usr/local/mgr5/etc/manager.crt;
  ssl_certificate_key /usr/local/mgr5/etc/manager.key;
  listen 123.321.44.55:443 ssl default_server;
  listen [gffd:hter:3:6:7::gfdf]:443 ssl default_server;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question