nginx not listening to port 80

前端 未结 10 1956
长发绾君心
长发绾君心 2020-12-12 23:56

I\'ve just installed a Ubuntu 12.04 server and nginx 1.2.7, removed default from sites-enabled and added my own file into sites-available and symli

10条回答
  •  囚心锁ツ
    2020-12-13 00:10

    If your logs are silent on the issue, you may not be including the sites-enabled directory. One simple way to tell that the site is being loaded is to set the error/access log path within your server block to a unique path, reload nginx, and check if the files are created.

    Ensure the following include directive exists within the http context in /etc/nginx/nginx.conf.

    http {
      ...
      include /etc/nginx/sites-enabled/*;
    }
    

提交回复
热议问题