1
votes

I'm new to nginx, what's best practice for user/group permissions, when deploying (Ruby) application, using nginx and passenger?

Is better deploy as root or "deployer" user in some group? And how should I set folder/file permissions.

On Apache server I have /public /log and some other folders writible by www-data and user is root. This configuration doesn't work on nginx (for me).

Thanks

1

1 Answers

3
votes

You should use separate user per application and Passenger/Nginx should automatically use the directory owner to run the process, never use root user.