Files
nginx-sitemanager/README.md
2023-12-04 21:20:13 -05:00

1004 B

🚀 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.