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
While modifying the standard nginx configuration, a few matters are important:
nginx -tinstead of assuming "it should work"
service nginx restartfor the changes to take effect
includeit 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