We can pass the command
sudo nginx -t
View the path to nginx.conf
via
sudo nginx -T
View the detailed configuration information of nginx, including the contents of the loaded configuration file and configuration block.
The contents of the configuration file will also be included.