diff --git a/conf.go b/conf.go index dab5628..e16a7f1 100644 --- a/conf.go +++ b/conf.go @@ -11,7 +11,7 @@ type server struct { Host string Port int Docroot string - UrlRules []rule + URLRules []rule EnableProxy bool Vhost []vhost } @@ -21,7 +21,7 @@ type vhost struct { Hostname string Cert string Key string - UrlRules []rule + URLRules []rule } type rule struct { diff --git a/routers.go b/routers.go index 4533ffc..8545e08 100644 --- a/routers.go +++ b/routers.go @@ -36,7 +36,7 @@ func initRouters(cfg conf) { } } r := router.Host(h2).Subrouter() - for _, rule := range h.UrlRules { + for _, rule := range h.URLRules { switch rule.Type { case "alias": registerAliasHandler(rule, r) @@ -54,7 +54,7 @@ func initRouters(cfg conf) { } // default host config - for _, rule := range l.UrlRules { + for _, rule := range l.URLRules { switch rule.Type { case "alias": registerAliasHandler(rule, router)