mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-04-19 02:05:20 +08:00
静态分发增加例外URL、限制URL、排除隐藏文件等选项
This commit is contained in:
@@ -347,7 +347,7 @@ func (this *CreateAction) RunPost(params struct {
|
||||
var rootJSON []byte
|
||||
var err error
|
||||
if len(params.WebRoot) > 0 {
|
||||
var rootConfig = &serverconfigs.HTTPRootConfig{}
|
||||
var rootConfig = serverconfigs.NewHTTPRootConfig()
|
||||
rootConfig.IsOn = true
|
||||
rootConfig.Dir = params.WebRoot
|
||||
rootConfig.Indexes = []string{"index.html", "index.htm"}
|
||||
|
||||
Reference in New Issue
Block a user