Hey guys i finally figured out the permissions problem, but now the other problem is that i configured my domains with two A records so that in case server1 goes down server2's IP will be reflected and when for testing purposes i switch off server1 my websites now show:
Welcome to nginx!
If you see this page, the nginx web server is successfully installed and working. Further configuration is required.
For online documentation and support please refer to nginx.org.
Commercial support is available at nginx.com.
Thank you for using nginx.
Investigating further brought to a folder called /etc/nginx/sites-enabled/
and these are samples of the contents on server2 which are not the same as server1 as server1 contains the domains with links
lrwxrwxrwx 1 root root 37 Nov 19 18:44 000-apps.vhost -> /etc/nginx/sites-available/apps.vhost
lrwxrwxrwx 1 root root 34 Nov 19 18:25 default -> /etc/nginx/sites-available/default
Should i just copy them from server1 to server2 and how do i keep the soft links on them?