View the Nginx configuration information of the current server on the Alibaba Cloud Linux server

We can pass the command

sudo nginx -t

View the path to nginx.conf
Insert image description here
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.
Insert image description here

Guess you like

Origin blog.csdn.net/weixin_45966674/article/details/132812338