mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
parent
99da617d61
commit
fdaa11872a
1 changed files with 233 additions and 228 deletions
|
@ -13,6 +13,7 @@ import (
|
|||
"io"
|
||||
"net/http"
|
||||
"os"
|
||||
"strings"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -143,7 +144,11 @@ func getLogPath(control *controlStruct) (logPath string, err error) {
|
|||
return
|
||||
}
|
||||
|
||||
logPath = directive.Params
|
||||
// fix: access_log /var/log/test.log main;
|
||||
p := strings.Split(directive.Params, " ")
|
||||
if len(p) > 0 {
|
||||
logPath = p[0]
|
||||
}
|
||||
|
||||
case "error":
|
||||
path := nginx.GetErrorLogPath()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue