How to see your Nginx configuration file


The web directive of is the developer’s chance to configure the Nginx server for the application. Sometimes it is helpful to see exactly what is in the Nginx configuration file as a result of the values in web. This guide shows how to read the Nginx config file using the CLI tool.


This guide assumes:


Reading the Nginx config file is a matter of being able to make an SSH connection to your environment and then knowing where the file is.


The nginx.conf file can be read with this command:

platform ssh 'less /etc/nginx/nginx.conf'


Nginx configuration is abstracted into the web directive of, but you can still see how that gets expressed by looking at the resultant file directly.