nginx not listening to port 80

前端 未结 10 1960
长发绾君心
长发绾君心 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-12 23:58

    I had this same problem, the solution was that I had not symlinked my siteconf file correctly. Try running vim /etc/nginx/sites-enabled/mysite.com—can you get to it? I was getting "Permission Denied."

    If not run:

    rm /etc/nginx/sites-enabled/mysite.com
    ln -s /etc/nginx/sites-available/mysite.com /etc/nginx/sites-enabled/mysite.com
    

提交回复
热议问题