I ran the node.js server attach faye on 8030 port.
I ran nginx server on 80 port.
I use nginx as proxy server and the client request will redirect to node.js server by nginx proxy call.
I have the below question.
1: If the client send request to node.js server by nginx to proxy call, the client can't receive the published messages. I can see the below error in the
2: If the client direct send request to node.js server I can receive the published messages from Node server.
# For more information on configuration, see:
# * Official English Documentation:
http://nginx.org/en/docs/# * Official Russian Documentation:
http://nginx.org/ru/docs/user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log;
#error_log /var/log/nginx/error.log notice;
#error_log /var/log/nginx/error.log info;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http{
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
client_header_buffer_size 10k;
access_log /etc/nginx/access.log main;
underscores_in_headers on;
# keepalive_timeout 3600;
upstream otatest {
keepalive 120;
server
127.0.0.1:8030 max_fails=3 fail_timeout=30s;
}
server {
listen 80;
server_name
otatest.domain.tv;
location / {
index index.html index.php index.jsp index.htm;
proxy_pass
http://otatest;
proxy_redirect off;
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_http_version 1.1;
proxy_set_header Connection "";
#proxy_connect_timeout 90;
#proxy_send_timeout 90;
#proxy_read_timeout 90;
#proxy_buffers 32 4K;
}
}
}