ae01c7837a656e67a30c5c4a67b90c241fa6c14b
🚀 NGINX - Site Manager
This script simplifies the process of managing NGINX sites by providing a command-line interface for common operations such as enabling/disabling, listing, and editing site configurations.
🛠️ Usage
./nginx-sm.sh [options]
⚙️ Options
-e, --enable: Enable a site by enabling its configuration file.-d, --disable: Disable a site by disabling its configuration file.-l, --list: List all available sites and their status.-ed, --edit: Edit the configuration file of a site.
📖 Examples
./nginx-sm.sh --enable example.com # Enable the site example.com
./nginx-sm.sh --list # List all available sites
./nginx-sm.sh -edit example.com # Edit the configuration of example.com
📚 Dependencies
- NGINX web server must be installed and running.
- The script requires sudo privileges to modify NGINX configuration files.
Copyright (c) 2023 nobody Licensed under the MIT License.
Description
Languages
Shell
100%