Add and enable a site in Nginx

#nginx #hosting #self-hosting #ssl


Copy the site configuration to the available sites folder

sudo cp site.conf /etc/nginx/sites-available/site.conf

Then symlink the site configuration in the enabled sites folder

sudo ln -s /etc/nginx/sites-available/site.conf /etc/nginx/sites-enabled/site.conf