aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go
diff options
context:
space:
mode:
authorManuel Dalla Lana <[email protected]>2020-07-20 20:16:13 +0200
committerGitHub <[email protected]>2020-07-20 12:16:13 -0600
commit2ae8c119279826ef81223e3b2155a08779f3ee8b (patch)
tree3f3979d14e341bba975323cd48a885f3ad0223e7 /modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go
parente9b1d7dcb4cbf85da7fb4cf8c411a4f840a98cf1 (diff)
downloadcaddy-2ae8c119279826ef81223e3b2155a08779f3ee8b.tar.gz
caddy-2ae8c119279826ef81223e3b2155a08779f3ee8b.zip
fastcgi: Add resolve_root_symlink (#3587)
Diffstat (limited to 'modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go')
-rw-r--r--modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go b/modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go
index 03b7226cf..8228439f5 100644
--- a/modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go
+++ b/modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go
@@ -39,6 +39,7 @@ func init() {
// root <path>
// split <at>
// env <key> <value>
+// resolve_root_symlink
// }
//
func (t *Transport) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
@@ -67,6 +68,9 @@ func (t *Transport) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
}
t.EnvVars[args[0]] = args[1]
+ case "resolve_root_symlink":
+ t.ResolveRootSymlink = true
+
default:
return d.Errf("unrecognized subdirective %s", d.Val())
}
@@ -196,6 +200,14 @@ func parsePHPFastCGI(h httpcaddyfile.Helper) ([]httpcaddyfile.ConfigValue, error
return nil, dispenser.ArgErr()
}
indexFile = args[0]
+
+ case "resolve_root_symlink":
+ args := dispenser.RemainingArgs()
+ dispenser.Delete()
+ for range args {
+ dispenser.Delete()
+ }
+ fcgiTransport.ResolveRootSymlink = true
}
}
}