For example, I'd like to set a new or remove a virtual host in the nginx.conf
configuration file without editing it directly but using a command-line tool, like:
nginx-cli add-server [options]
nginx-cli remove-server [options]
Every NGINX configuration file will be found in the /etc/nginx/ directory, with the main configuration file located in /etc/nginx/nginx. conf .
Through a simple command you can verify the status of the Nginx configuration file: $ sudo systemctl config nginx The output will show if the configuration file is correct or, if it is not, it will show the file and the line where the problem is.
By default, the configuration file is named nginx. conf and placed in the directory /usr/local/nginx/conf , /etc/nginx , or /usr/local/etc/nginx .
I don't know if either of these will exactly fill your need, but they both offer some tools for nginx
nginx
config file, which might help.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With