Noogic / virtualHostShell

Shell for create virtual host using nginx
0 stars 0 forks source link

Create nginx basic configuration #4

Open Noogic opened 9 years ago

Noogic commented 9 years ago

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.

Noogic commented 9 years ago

All of that is assuming a simple website without friendly urls. That will come later (for seo, or the equivalent to .htaccess some CMS needs)