我在我的服务器上面跑了两个node应用程序,分别一个端口2368跑的是ghost博客,一个端口8000跑的是我的demo程序.想要一级域名zhangruojun.com用来访问博客,二级域名demo.zhangruojun.com用来访问demo程序. 首先,在你的域名供应商那里添加一条二级域名记录 nginx 配置 server { listen 80; server_name zhangruojun.com; location / { proxy_set_header X-Real-IP $…