Skip to content
Knowledge Base

How to create soft link in nginx /etc/nginx/sites-available and /etc/nginx/sites-enabled/

Navigate to the sites-enabled directory Create the soft link using sudo Test the Nginx configuration Reload Nginx to apply changes How to verify it worked

Updated 1 min readLinux Command

bash
cd /etc/nginx/sites-enabled/
bash
sudo ln -s /etc/nginx/sites-available/yourdomain.com .

Test the Nginx configuration

bash
sudo nginx -t

Reload Nginx to apply changes

bash
sudo systemctl reload nginx

How to verify it worked

bash
ls -l /etc/nginx/sites-enabled
linux-command/ln.md