User to start Passenger (with Nginx)

后端 未结 3 1823
野的像风
野的像风 2021-01-02 18:58

I have Nginx with Passenger. In nginx.conf I have line:

user pass users;

and Nginx process works on \'pass\' user, but Passenger* processe

相关标签:
3条回答
  • 2021-01-02 19:18

    Put the following into your nginx.conf in the http block:

    passenger_default_user custom_username;
    passenger_default_group custom_group;
    

    You can find more configuration options here:

    http://modrails.com/documentation/Users%20guide%20Nginx.html#PassengerDefaultUser

    0 讨论(0)
  • 2021-01-02 19:31

    You can pass a user line into your nginx conf. http://wiki.nginx.org/CoreModule#user

    I suggest that in the future you ask server questions on ServerFault, they usually know a lot more about nginx and passenger.

    0 讨论(0)
  • 2021-01-02 19:36

    At one point the user and group were determined by the owners of the config.ru file. I'm pretty sure this is still the case.

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