1 FastCGI sent in stderr: “Primary script unknown”

前端 未结 5 1726
有刺的猬
有刺的猬 2021-02-04 05:15

My first time using Nginx, but I am more than familiar with Apache and Linux. I am using an existing project and when ever I am trying to see the index.php I get a 404 File not

5条回答
  •  忘了有多久
    2021-02-04 05:49

    Ok, so 3 things I found after a day of struggling

    1. For some reason I had already something running on port 9000 so I changed to 9001
    2. My default site was intercepting my new one, once again I don't under stand why since it shouldn't, but I just unlinked it
    3. Nginx doesn't automatically do the sym link for sites-available to site-enabled.

    Hope this saves someone some trouble!

    Here is a more detailed link in server fault: https://serverfault.com/questions/517190/nginx-1-fastcgi-sent-in-stderr-primary-script-unknown/517207#517207

提交回复
热议问题