Docker Community Forums

Share and learn in the Docker community.

Docker Nginx Proxy Reverse Error Please Help


(Servet TAS) #1

upstream websocket {
server demo.mebitech.com;
}

server {
    listen 80;  #nginx listen port
    server_name demo.mebitech.com;

#####################################

   location / {
        proxy_pass http://192.168.34.55:9000;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
#        proxy_set_header Connection $connection_upgrade;
    }

   location /meziy {
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_cache_bypass $http_upgrade;
    proxy_pass http://localhost:8090;

    }

################################################

this is my nginx default.conf file 9000 port is working great but 8090 not working. I changed 127.0.0.1:8090 192.168.34.55:8090 and demo.mebitech.com:8090 and not working but when i tried myip:8090 it is working.
what is wrong ?

kind regards


(Sam) #2

what DNS server supplies the ip for this name?

the nginx setting just places that text in the replies. it doesn’t update any nameserver …

if u ping demo.mebitech.com where is it?


(Servet TAS) #3

Thanks resolved

Servet TAŞ
Bilgisayar Mühendisi
Sistem Yöneticisi

26 Kas 2017 22:23 tarihinde “Sdetweil” docker@discoursemail.com yazdı: