Let's break down the process in detail:
When NGINX starts up, it looks for configuration files in the /etc/nginx/sites-enabled directory. By creating a symbolic link from the sites-available directory to the sites-enabled directory, you effectively enable the configuration file without duplicating it.
Here's a step-by-step explanation of creating the symbolic link:
-
Open a terminal or command prompt.
-
Use the following command to create the symbolic link: