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