When we talk about nginx virtualhost configuration file, we have several cases which must be implemented:
[ ] Is a domain and uses default user
[ ] Is a domain and uses its own user
[ ] Is a subdomain and uses default user
[ ] Is a subdomain and uses its own user
The main difference with domain and subdomain is the folder structure, nothing more.
The difference between default user and own user is that, when using the default user, the root path for the virtual host will be /var/www/domain.com/public and the fpm pool will be the default pool, but when using its own user, the root path for the virutal host will be the same but that path will be a simlink to /home/user/www/public. Also, a new fpm pool is created.
When we talk about nginx virtualhost configuration file, we have several cases which must be implemented:
The main difference with domain and subdomain is the folder structure, nothing more.
The difference between default user and own user is that, when using the default user, the root path for the virtual host will be /var/www/domain.com/public and the fpm pool will be the default pool, but when using its own user, the root path for the virutal host will be the same but that path will be a simlink to /home/user/www/public. Also, a new fpm pool is created.