Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 12, 03:15 UTC
fastcgi: improve parsePHPFastCGI docs (#6779)
Kévin Dunglas committed
Jan 9, 2025 at 19:54 UTC
1f35a8a4029a338e89998acafa95e1e931a46a27
1 file changed
+4
-1
modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go
+4
-1
@@ -131,15 +131,18 @@ func (t *Transport) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
131
// is equivalent to a route consisting of:
132
//
133
// # Add trailing slash for directory requests
134
+// # This redirection is automatically disabled if "{http.request.uri.path}/index.php"
135
+// # doesn't appear in the try_files list
136
// @canonicalPath {
137
// file {path}/index.php
138
// not path */
139
// }
140
// redir @canonicalPath {path}/ 308
141
//
140
-// # If the requested file does not exist, try index files
142
+// # If the requested file does not exist, try index files and assume index.php always exists
143
// @indexFiles file {
144
// try_files {path} {path}/index.php index.php
145
+// try_policy first_exist_fallback
146
// split_path .php
147
// }
148
// rewrite @indexFiles {http.matchers.file.relative}