Nginx worker process cant access config.ru

前端 未结 2 1536
孤独总比滥情好
孤独总比滥情好 2021-01-25 17:16

I have set up my RoR app on DO Ubuntu x64. On Nginx port 8080.

My config:

server {
  listen 8080;
 # server_name www.mydomain.com;
  passenger         


        
2条回答
  •  有刺的猬
    2021-01-25 18:00

    Please check the $PATH for your the user www-data. The fact that the command cd was not found, is troubling.

    Also please run this command

    sudo -u www-data stat /home/edgars/Proj/config.ru
    

    ensure that your www-data user can stat the above file. This will help you understand if you set the file permissions correctly.

    Also, have you enabled SElinux on your Ubuntu? If yes, please follow the instructions here.

提交回复
热议问题