We are using nginx as a reverse proxy or rather a frontend server while Apache is running in the backend. That means that clients will connect to nginx only. So, most configuration will be handled within nginx configurations and possibly some within an .htaccess
file.
While modifying the standard nginx configuration, a few matters are important:
nginx -t
instead of assuming "it should work"service nginx restart
for the changes to take effectinclude
it at the end of the server section within the domain's configuration file. Again, use templates for the includes if possible.The main configuration can be found at /etc/nginx/nginx.conf
and the domain-specific configuration can be found within the directory /home/{{user}}/conf/web
.