Browse Source

chore(docs): update nginx log document

Jacky 1 year ago
parent
commit
7669e34b62
3 changed files with 0 additions and 96 deletions
  1. 0 30
      docs/guide/config-nginx.md
  2. 0 33
      docs/zh_CN/guide/config-nginx.md
  3. 0 33
      docs/zh_TW/guide/config-nginx.md

+ 0 - 30
docs/guide/config-nginx.md

@@ -9,36 +9,6 @@ Starting from Nginx UI v2.0.0-beta.3, we have renamed the `nginx_log` configurat
 ## Logs
 ## Logs
 Nginx logs are crucial for monitoring, troubleshooting, and maintaining your web server. They provide valuable insights into server performance, user behavior, and potential issues.
 Nginx logs are crucial for monitoring, troubleshooting, and maintaining your web server. They provide valuable insights into server performance, user behavior, and potential issues.
 
 
-In this section, we will discuss two main types of logs: access logs and error logs.
-
-For Nginx-UI Docker users upgrading from version v1.5.2 or earlier, you need to add separate `access_log` and `error_log` directives in `nginx.conf` before configuring `app.ini`.
-
-In the Nginx-UI container, `/var/log/nginx/access.log` is a symbolic link to `/dev/stdout`, and `/var/log/nginx/error.log` is a symbolic link to `/dev/stderr`. This setup allows you to view Nginx and Nginx-UI logs using the `docker logs nginx-ui` command. However, these devices do not support the `tail` command, so it is necessary to use additional log files to record Nginx logs.
-
-Example:
-
-```nginx
-error_log /var/log/nginx/error.log notice;
-error_log /var/log/nginx/error.local.log notice;
-
-http {
-...
-    access_log /var/log/nginx/access.log main;
-    access_log /var/log/nginx/access.local.log main;
-...
-}
-```
-
-Afterward, set the nginx access log and error log paths in `app.ini`, then restart nginx-ui.
-
-Example:
-
-```ini
-[nginx]
-AccessLogPath = /var/log/nginx/access.local.log
-ErrorLogPath = /var/log/nginx/error.local.log
-```
-
 ### AccessLogPath
 ### AccessLogPath
 
 
 - Type: `string`
 - Type: `string`

+ 0 - 33
docs/zh_CN/guide/config-nginx.md

@@ -10,39 +10,6 @@
 ## 日志
 ## 日志
 Nginx 日志对于监控、排查问题和维护您的 Web 服务器至关重要。它们提供了有关服务器性能、用户行为和潜在问题的宝贵见解。
 Nginx 日志对于监控、排查问题和维护您的 Web 服务器至关重要。它们提供了有关服务器性能、用户行为和潜在问题的宝贵见解。
 
 
-在本节中,我们将讨论两种主要类型的日志:访问日志和错误日志。
-
-对于从 v1.5.2 或更早版本升级的 Nginx-UI Docker 用户,在配置 `app.ini` 之前,您需要在 `nginx.conf`
-中添加单独的 `access_log` 和 `error_log` 指令。
-
-在 Nginx-UI 容器中,`/var/log/nginx/access.log` 是一个指向 `/dev/stdout` 的符号链接,而 `/var/log/nginx/error.log`
-是一个指向 `/dev/stderr` 的符号链接。这种设置允许您使用 `docker logs nginx-ui` 命令查看 Nginx 和 Nginx-UI 日志。然而,这两个设备不支持
-`tail` 命令,因此有必要使用额外的日志文件来记录 Nginx 日志。
-
-示例:
-
-```nginx
-error_log /var/log/nginx/error.log notice;
-error_log /var/log/nginx/error.local.log notice;
-
-http {
-...
-    access_log /var/log/nginx/access.log main;
-    access_log /var/log/nginx/access.local.log main;
-...
-}
-```
-
-之后,请在 `app.ini` 中设置 nginx 访问日志和错误日志路径,然后重新启动 nginx-ui。
-
-示例:
-
-```ini
-[nginx]
-AccessLogPath = /var/log/nginx/access.local.log
-ErrorLogPath = /var/log/nginx/error.local.log
-```
-
 ### AccessLogPath
 ### AccessLogPath
 
 
 - 类型:`string`
 - 类型:`string`

+ 0 - 33
docs/zh_TW/guide/config-nginx.md

@@ -9,39 +9,6 @@
 ## 日誌
 ## 日誌
 Nginx 日誌對於監控、排查問題和維護您的 Web 伺服器至關重要。它們提供了有關伺服器性能、用戶行為和潛在問題的寶貴見解。
 Nginx 日誌對於監控、排查問題和維護您的 Web 伺服器至關重要。它們提供了有關伺服器性能、用戶行為和潛在問題的寶貴見解。
 
 
-在本節中,我們將討論兩種主要類型的日誌:訪問日誌和錯誤日誌。
-
-對於從 v1.5.2 或更早版本升級的 Nginx-UI Docker 用戶,在配置 `app.ini` 之前,您需要在 `nginx.conf`
-中添加單獨的 `access_log` 和 `error_log` 指令。
-
-在 Nginx-UI 容器中,`/var/log/nginx/access.log` 是一個指向 `/dev/stdout` 的符號鏈接,而 `/var/log/nginx/error.log`
-是一個指向 `/dev/stderr` 的符號鏈接。這種設置允許您使用 `docker logs nginx-ui` 命令查看 Nginx 和 Nginx-UI 日誌。然而,這兩個設備不支持
-`tail` 命令,因此有必要使用額外的日誌文件來記錄 Nginx 日誌。
-
-範例:
-
-```nginx
-error_log /var/log/nginx/error.log notice;
-error_log /var/log/nginx/error.local.log notice;
-
-http {
-...
-    access_log /var/log/nginx/access.log main;
-    access_log /var/log/nginx/access.local.log main;
-...
-}
-```
-
-之後,請在 `app.ini` 中設置 nginx 訪問日誌和錯誤日誌路徑,然後重新啟動 nginx-ui。
-
-範例:
-
-```ini
-[nginx]
-AccessLogPath = /var/log/nginx/access.local.log
-ErrorLogPath = /var/log/nginx/error.local.log
-```
-
 ### AccessLogPath
 ### AccessLogPath
 
 
 - 類型:`string`
 - 類型:`string`