opexdev / reverse-proxy

Configuring NGINX as reverse proxy for OPEX exchange
MIT License
1 stars 5 forks source link

status-page is duplicated #20

Open vanodevium opened 1 year ago

vanodevium commented 1 year ago

There is two copy of status page in the nginx.conf:

1.

server {
        listen 443 ssl;
        listen [::]:443 ssl;

        server_name status.opex.loc;

        location / {
            set $backend http://public.netnegar.io;
            proxy_pass $backend;
        }
    }
  1. include /etc/nginx/netnegar.conf;

Looks like there should be only one declaration.

Logs from docker-compose:

reverse-proxy-nginx-1  | 2023/02/22 16:35:21 [warn] 10#10: conflicting server name "status.opex.dev" on 0.0.0.0:443, ignored
reverse-proxy-nginx-1  | nginx: [warn] conflicting server name "status.opex.dev" on 0.0.0.0:443, ignored
reverse-proxy-nginx-1  | 2023/02/22 16:35:21 [warn] 10#10: conflicting server name "status.opex.dev" on [::]:443, ignored
reverse-proxy-nginx-1  | nginx: [warn] conflicting server name "status.opex.dev" on [::]:443, ignored