Skip to content

Commit

Permalink
fix: nginx guide link #201
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJacky committed Apr 30, 2024
1 parent cfa7629 commit 0863143
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/nginx/nginx_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,13 @@ func getLogPath(control *controlStruct) (logPath string, err error) {
if len(p) > 0 {
logPath = p[0]
}

case "error":
path := nginx.GetErrorLogPath()

if path == "" {
err = errors.New("settings.NginxLogSettings.ErrorLogPath is empty," +
" refer to https://nginxui.com/zh_CN/guide/config-nginx-log.html for more information")
" refer to https://nginxui.com/guide/config-nginx.html for more information")
return
}

Expand All @@ -165,7 +165,7 @@ func getLogPath(control *controlStruct) (logPath string, err error) {

if path == "" {
err = errors.New("settings.NginxLogSettings.AccessLogPath is empty," +
" refer to https://nginxui.com/zh_CN/guide/config-nginx-log.html for more information")
" refer to https://nginxui.com/guide/config-nginx.html for more information")
return
}

Expand Down

0 comments on commit 0863143

Please sign in to comment.