pull/737/merge
Harwyn T'an 2025-08-25 07:02:01 +00:00 committed by GitHub
commit 680f9a6513
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 1 deletions

View File

@ -520,7 +520,13 @@ sudo nano /etc/nginx/nginx.conf
3. 在我们设置过的 80 端口 Server 中加入下面的语句,并保存退出(可同时删除`root`和`index`两行)
```
return 301 https://$http_host$request_uri;
location /.well-known/acme-challenge/ {
root /home/vpsadmin/www/webpage;
}
location / {
return 301 https://$host$request_uri;
}
```
4. 在与 `80` 端口同级的位置增加一个本地端口监听来提供网页展示。本文以 `8080` 端口做演示。(可以是任意端口)