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]
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]
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.You can use nano
to open an editor for your file.
A basic example would be (unless you are running as root, you'll have to prefix the command with sudo
):
nano nginx.conf
© 2022 - 2024 — McMap. All rights reserved.