User launches Passenger (with Nginx)

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

user pass users;

and the Nginx process works with the user "pass", but the Passenger * processes work with the user "nobody".

I can run the standalone Passenger:

sudo passanger start -e production -p 80 --user=pass

How can I run Passenger with Nginx with my user user?

+5
source share
3 answers

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

passenger_default_user custom_username;
passenger_default_group custom_group;

Here you can find additional configuration options:

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

+8
source

- config.ru. , .

+4

You can pass the custom string to 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 the passenger.

0
source

All Articles