mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 02:45:49 +02:00
parent
99da617d61
commit
fdaa11872a
1 changed files with 233 additions and 228 deletions
|
@ -13,6 +13,7 @@ import (
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -143,7 +144,11 @@ func getLogPath(control *controlStruct) (logPath string, err error) {
|
||||||
return
|
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":
|
case "error":
|
||||||
path := nginx.GetErrorLogPath()
|
path := nginx.GetErrorLogPath()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue