Disables a Nginx site by removing its symlink from /etc/nginx/sites-enabled.
/etc/nginx/sites-enabled
This will likely require sudo permissions if run with the default nginx dir (/etc/nginx/).
/etc/nginx/
true if the enabled symlink exists and was deleted. Otherwise, false.
true
false
Disables a Nginx site by removing its symlink from
/etc/nginx/sites-enabled
.This will likely require sudo permissions if run with the default nginx dir (
/etc/nginx/
).