ubuntu – Nginx网站没有被拿起

前端之家收集整理的这篇文章主要介绍了ubuntu – Nginx网站没有被拿起前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我的新网站没有被接收.我创建了appycontrol.staging:
upstream appycontrol_staging {
  server unix:///var/www/appycontrol.staging/shared/sockets/puma.sock;
}

server {
    listen 80 default_server;
    server_name control-staging.somedomain.com;
    root /var/www/appycontrol.staging/current/public;

    location / {
            proxy_pass http://appycontrol_staging;
            proxy_set_header Host $host;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}

我在启用站点的目录中添加了一个符号链接

[Staging] deploy@localhost:~$ls -l /etc/Nginx/sites-enabled/
total 0
lrwxrwxrwx 1 root root 45 Nov  3  2015 appyengine.staging -> /etc/Nginx/sites-available/appyengine.staging
lrwxrwxrwx 1 root root 46 Jul  7 06:03 appycontrol.staging -> /etc/Nginx/sites-available/appycontrol.staging

我重新启动了Nginx

sudo service Nginx restart

但是,control-staging.somedomain.com会被appyengine.staging网站选中.

我错过了什么?

您可能在其他配置文件中使用了通配符域,或者由于某种原因启动Nginx失败.

/// var /也应该是/ var /.

猜你在找的Ubuntu相关文章