标签:ring san ejs hat cti clu pretty 包含 key
首先在阿里云配置解析域名
指向端口为3200的nodejs服务,在nginx/conf.d下增加文件chat.conf,内容如下:
server {
listen 80;
server_name www.chat.sanjiadian.net chat.sanjiadian.net;
location / {
proxy_pass http://127.0.0.1:3200;
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;
}
}
注意nginx/nginx.conf文件中的http下包含:include /etc/nginx/conf.d/*.conf;实际根据自己的nginx安装目录
标签:ring san ejs hat cti clu pretty 包含 key
原文地址:https://www.cnblogs.com/zlbrother/p/9098571.html