Tasks for configuring sites running under the Nginx webserver.
Nginx installs with a default server listening on 80 defined in /etc/nginx/sites-enabled/default.conf. This task removes that configuration.
This task uploads a new configuration to /etc/nginx/sites-available/<site_name>. This looks for a template named nginx/<site_name>.conf and if not found uploads the default nginx/site.conf unless template_name is given. By default this site configuration will be enabled /etc/nginx/sites-enabled/.
Enables a site in /etc/nginx/sites-available/<site_name> and links it to /etc/nginx/sites-enabled/<site_name>.
Disables a site in /etc/nginx/sites-enabled/ by the name. The configuration in /etc/nginx/sites-available/ is not touched.