From 0871d652fe588984c1fd506fc98cef7bdb1b69e8 Mon Sep 17 00:00:00 2001 From: zclaiqcc Date: Thu, 6 Jul 2023 15:25:24 +0800 Subject: [PATCH] feat: add faq for customizing nginx config --- homepage/src/static/md/faq_other.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/homepage/src/static/md/faq_other.md b/homepage/src/static/md/faq_other.md index 2b05fe6..789ba00 100644 --- a/homepage/src/static/md/faq_other.md +++ b/homepage/src/static/md/faq_other.md @@ -139,3 +139,17 @@ server { ```shell proxy_set_header X-Forwarded-Proto $scheme; ``` + +修改完成后运行命令检查配置文件 +```shell +docker exec safeline-tengine nginx -t +``` +检查应显示 +```shell +nginx: the configuration file /etc/nginx/nginx.conf syntax is ok +nginx: configuration file /etc/nginx/nginx.conf test is successful +``` +最后应用配置文件 +```shell +docker exec safeline-tengine nginx -s reload +``` \ No newline at end of file