We have some websites on a centos nginx webserver.
Usually we put nginx:nginx as owner with 775 permissions and developers are part of the nginx group. If you are wondering why developers need to write there, we are a little entity different people call things like git pull on that server.
Problem is, that one of websites got hacked (from a wordpress bug) and as all the websites are under /www/docs/websitename all of them were compromised.
Is there a way to permit the normal work of nginx and users without "traspassing" ?