Browse Source
httpcaddyfile: Switch order; reverse_proxy comes before php_fastcgi
master
Matthew Holt
6 years ago
No known key found for this signature in database
GPG Key ID: 2A349DD577D586A5
2 changed files with
1 additions and
5 deletions
-
caddyconfig/httpcaddyfile/directives.go
-
caddyconfig/httpcaddyfile/httptype.go
|
|
@ -34,8 +34,8 @@ var defaultDirectiveOrder = []string{ |
|
|
|
"templates", |
|
|
|
"redir", |
|
|
|
"static_response", // TODO: "reply" or "respond"?
|
|
|
|
"php_fastcgi", |
|
|
|
"reverse_proxy", |
|
|
|
"php_fastcgi", |
|
|
|
"file_server", |
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -37,10 +37,6 @@ func init() { |
|
|
|
type ServerType struct { |
|
|
|
} |
|
|
|
|
|
|
|
// TODO: customize directive ordering
|
|
|
|
|
|
|
|
// TODO: hide caddyfile when serving static files
|
|
|
|
|
|
|
|
// Setup makes a config from the tokens.
|
|
|
|
func (st ServerType) Setup(originalServerBlocks []caddyfile.ServerBlock, |
|
|
|
options map[string]interface{}) (*caddy.Config, []caddyconfig.Warning, error) { |
|
|
|