docs: update home/server/nginx
This commit is contained in:
parent
b68b1df106
commit
cf0c164ce3
@ -2,7 +2,7 @@
|
|||||||
title: nginx
|
title: nginx
|
||||||
description:
|
description:
|
||||||
published: true
|
published: true
|
||||||
date: 2025-09-27T14:10:07.176Z
|
date: 2025-09-27T17:39:07.236Z
|
||||||
tags:
|
tags:
|
||||||
editor: markdown
|
editor: markdown
|
||||||
dateCreated: 2025-09-27T13:50:53.553Z
|
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/
|
sudo ln -s /etc/nginx/sites-available/wiki /etc/nginx/sites-enabled/
|
||||||
|
```
|
||||||
|
|
||||||
|
Start it with
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo nginx -t
|
||||||
```
|
```
|
||||||
Loading…
x
Reference in New Issue
Block a user