Nginx (engine x) is is a HTTP and reverse proxy server.
Public web server should provide a high level of security. On the other hand web applications may require some write permissions to the file system. Although changing the permission with
0777 is one possible solution, it allows read, write and execute commands for everyone. The better solution is to set the owner of the web application to the user of the web server.