Всем привет, проблема в заголовке. Сервер сайта на node.js и запущен на 3030 порту. Вот содержимое nginx.conf
user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
}
http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
gzip on;
include /etc/nginx/conf.d/*.conf;
server {
listen 3030;
listen [::]:3030;
root /home/mom/course;
location / {
proxy_pass http://localhost:3030/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
}
tcp 0 0 0.0.0.0:10050 0.0.0.0:* LISTEN 368/zabbix_agentd
tcp 0 0 127.0.0.1:27017 0.0.0.0:* LISTEN 381/mongod
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 317/systemd-resolve
tcp 0 0 0.0.0.0:3030 0.0.0.0:* LISTEN 1296/nginx: master
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 404/sshd
tcp 0 0 127.0.0.1:3000 0.0.0.0:* LISTEN 566/node /home/node
tcp6 0 0 :::3030 :::* LISTEN 1296/nginx: master
tcp6 0 0 :::22 :::* LISTEN 404/sshd