标签:
$ cd /etc/nginx/conf.d
注:此为 Centos 的默认配置目录,不同平台默认目录可能不同
server {
listen 80;
server_name www.nodercms.com;
location / {
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_pass http://localhost:3002;
}
}
保存为 /etc/nginx/conf.d/my-nodercms.conf
标签:
原文地址:http://www.cnblogs.com/welkinwong/p/5963090.html