These scripts will manage the sym link's for a given nginx vhost app and it's upstreams based on the arguments provided.
- To enable, run script
./enable.sh app_name [app_domain_name] - To disable, run script
./disable.sh app_name [app_domain_name]
| ARGUMENT | DESCRIPTION |
|---|---|
| app_name | the name of the app, it should match the sub domain and before the _upstream for the upstream. |
| app_domain_name | optional and defaults to domain.com |
Running ./enable.sh img will create two symlinks
- /etc/nginx/upstreams-enabled/img_upstream.conf
- /etc/nginx/sites-enabled/img.domain.com
Running ./disable.sh img will remove two symlinks
- /etc/nginx/upstreams-enabled/img_upstream.conf
- /etc/nginx/sites-enabled/img.domain.com