在ubuntu 14.04中更新nginx

在我的服务器中,nginx -v返回nginx版本:nginx / 1.4.6(Ubuntu),它很老,所以我决定将它更新到最新的稳定版本.然后,我跟着this answer:sudo apt-get update sudo apt-get install nginx 它给:Reading package lists… Done Building dep

node.js – 为两个节点应用配置nginx,其中一个在子域上

问题我正在尝试设置nginx,以便我可以拥有我的域,domain.com由端口3000上的节点web应用运行,子域dev.domain.com由端口3001上的第二个节点web应用运行.当我运行时此配置domain.com连接到正确的端口,但dev.domain.com只提供一个页面,指出无法访问服务器.编辑:如

返回顶部