mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 07:50:25 +08:00 
			
		
		
		
	静态分发增加例外URL、限制URL、排除隐藏文件等选项
This commit is contained in:
		@@ -101,7 +101,7 @@ func (this *HTTPWebDAO) ComposeWebConfig(tx *dbs.Tx, webId int64, isLocationOrGr
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	// root
 | 
						// root
 | 
				
			||||||
	if IsNotNull(web.Root) {
 | 
						if IsNotNull(web.Root) {
 | 
				
			||||||
		var rootConfig = &serverconfigs.HTTPRootConfig{}
 | 
							var rootConfig = serverconfigs.NewHTTPRootConfig()
 | 
				
			||||||
		err = json.Unmarshal(web.Root, rootConfig)
 | 
							err = json.Unmarshal(web.Root, rootConfig)
 | 
				
			||||||
		if err != nil {
 | 
							if err != nil {
 | 
				
			||||||
			return nil, err
 | 
								return nil, err
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user