diff --git a/home/server/nginx.md b/home/server/nginx.md index 698ab8b..eacc72b 100644 --- a/home/server/nginx.md +++ b/home/server/nginx.md @@ -2,7 +2,7 @@ title: nginx description: published: true -date: 2025-09-27T14:10:07.176Z +date: 2025-09-27T17:39:07.236Z tags: editor: markdown dateCreated: 2025-09-27T13:50:53.553Z @@ -38,7 +38,13 @@ server { } ``` -Add symlink to the config file so nginx loads it +Add symlink to the config file so nginx loads it. This was it is easy to control which sites should be enabled or not by removing/adding the symlink. ``` sudo ln -s /etc/nginx/sites-available/wiki /etc/nginx/sites-enabled/ +``` + +Start it with + +``` +sudo nginx -t ``` \ No newline at end of file