nginx not listening to port 80

前端 未结 10 2020
长发绾君心
长发绾君心 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:05

    I ran into the same problem, I got a Failed to load resource: net::ERR_CONNECTION_REFUSED error when connecting over HTTP, but fine over HTTPS. Ran netstat -tulpn and saw nginx not binding to port 80 for IPv4. Done everything described here. Turned out to be something very stupid:

    Make sure the sites-available file with the default_server is actually enabled.

    Hope this saved some other poor idiot out there some time.

提交回复
热议问题