Two easy steps
- Just add a new config with the full “server {}” block in /etc/nginx/sites-available/
For example, /etc/nginx/sites-available/gene.jinabs.com.confserver { listen 443; listen [::]:443; root /var/www/gene.jinabs.com/html; index index.html index.htm index.nginx-debian.html; server_name gene.jinabs.com www.gene.jinabs.com; location / { try_files $uri $uri/ =404; } }
- Create symbol link for gene.jinabs.com and restart/reload Nginx as follows.
ln -s /etc/nginx/sites-available/gene.jinabs.com.conf /etc/nginx/sites-enabled/ nginx -t systemctl restart nginx
That’s it.