Nginx enable site command | Newbedev
https://newbedev.com/nginx-enable-site-commandDebian/Ubuntu. However, if you're using a Debian/Ubuntu derivative, then in addition to conf.d, you may also have the evil non-standard sites-available and sites-enabled directories, some files under which may be sloppily included without regard to their extension:. http { … include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*; }
Nginx enable site command - Server Fault
serverfault.com › questions › 424452Enable site. in: /usr/local/bin/ngensite.sh: #!/bin/sh read -p "Website to enable: " site; ln -s /etc/nginx/sites-available/"$site" /etc/nginx/sites-enabled/ echo "$site enabled. Now run 'service nginx reload'" Then from the command-line: sudo ngensite.sh (The prompt will need the exact nginx virtualhosts config file). Disable site