Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
httpcaddyfile: Switch order; reverse_proxy comes before php_fastcgi
Matthew Holt committed
Sep 11, 2019 at 12:02 UTC
e48d83452e42a6eb53f02213dd5981d02627b7b2
2 files changed
+1
-5
caddyconfig/httpcaddyfile/directives.go
+1
-1
@@ -34,8 +34,8 @@ var defaultDirectiveOrder = []string{
34
"templates",
35
"redir",
36
"static_response", // TODO: "reply" or "respond"?
37
- "php_fastcgi",
37
"reverse_proxy",
38
+ "php_fastcgi",
39
"file_server",
40
}
41
caddyconfig/httpcaddyfile/httptype.go
-4
@@ -37,10 +37,6 @@ func init() {
37
type ServerType struct {
38
}
39
40
-// TODO: customize directive ordering
41
-
42
-// TODO: hide caddyfile when serving static files
43
-
40
// Setup makes a config from the tokens.
41
func (st ServerType) Setup(originalServerBlocks []caddyfile.ServerBlock,
42
options map[string]interface{}) (*caddy.Config, []caddyconfig.Warning, error) {