mirror of https://github.com/caddyserver/caddy.git
httpcaddyfile: Switch order; reverse_proxy comes before php_fastcgi
This commit is contained in:
parent
2459c292a4
commit
e48d83452e
|
@ -34,8 +34,8 @@ var defaultDirectiveOrder = []string{
|
||||||
"templates",
|
"templates",
|
||||||
"redir",
|
"redir",
|
||||||
"static_response", // TODO: "reply" or "respond"?
|
"static_response", // TODO: "reply" or "respond"?
|
||||||
"php_fastcgi",
|
|
||||||
"reverse_proxy",
|
"reverse_proxy",
|
||||||
|
"php_fastcgi",
|
||||||
"file_server",
|
"file_server",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -37,10 +37,6 @@ func init() {
|
||||||
type ServerType struct {
|
type ServerType struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: customize directive ordering
|
|
||||||
|
|
||||||
// TODO: hide caddyfile when serving static files
|
|
||||||
|
|
||||||
// Setup makes a config from the tokens.
|
// Setup makes a config from the tokens.
|
||||||
func (st ServerType) Setup(originalServerBlocks []caddyfile.ServerBlock,
|
func (st ServerType) Setup(originalServerBlocks []caddyfile.ServerBlock,
|
||||||
options map[string]interface{}) (*caddy.Config, []caddyconfig.Warning, error) {
|
options map[string]interface{}) (*caddy.Config, []caddyconfig.Warning, error) {
|
||||||
|
|
Loading…
Reference in New Issue