Sinatra on Nginx configuration - what's wrong?

前端 未结 2 2198
逝去的感伤
逝去的感伤 2021-02-15 11:13

I followed this tutorial more or less... I installed the passenger gem, executed passenger-install-ginx-module, sucessfully installed nginx and inserted this into the config:

相关标签:
2条回答
  • 2021-02-15 12:12

    I had the same error until I added passenger_root and passenger_ruby directives in the http block.

    0 讨论(0)
  • 2021-02-15 12:15

    Make sure that the user nginx is running as (in most cases 'nobody' or 'www-data') has permission to read the contents of your home directory /home/admin.

    Also you can look into the nginx logs and read exactly what the error was.

    0 讨论(0)
提交回复
热议问题