@@ -68,8 +68,8 @@ function init() {
nginx_log.page(0, {
conf_name: (route.query.conf_name as string),
type: logType(),
- server_idx: 0,
- directive_idx: 0
+ server_idx: parseInt(route.query.server_idx as string),
+ directive_idx: parseInt(route.query.directive_idx as string)
}).then(r => {
page.value = r.page - 1
addLog(r.content)
@@ -125,7 +125,6 @@ func getLogPath(control *controlStruct) (logPath string, err error) {
}
directive := config.Servers[control.ServerIdx].Directives[control.DirectiveIdx]
-
switch directive.Directive {
case "access_log", "error_log":
// ok