From cf0c164ce30b4b1a6d968ebe26866f86170daeeb Mon Sep 17 00:00:00 2001 From: Administrator Date: Sat, 27 Sep 2025 19:39:09 +0200 Subject: [PATCH] docs: update home/server/nginx --- home/server/nginx.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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