mirror of
https://github.com/caddyserver/website.git
synced 2025-04-22 04:56:17 -04:00
docs: Update the php_fastcgi expanded form
This commit is contained in:
parent
144a639efc
commit
258d422e3f
1 changed files with 8 additions and 4 deletions
|
@ -33,14 +33,18 @@ route {
|
||||||
file {
|
file {
|
||||||
try_files {path}/index.php
|
try_files {path}/index.php
|
||||||
}
|
}
|
||||||
not {
|
not path */
|
||||||
path */
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
redir @canonicalPath {path}/ 308
|
redir @canonicalPath {path}/ 308
|
||||||
|
|
||||||
# If the requested file does not exist, try index files
|
# If the requested file does not exist, try index files
|
||||||
|
@indexFiles {
|
||||||
|
file {
|
||||||
try_files {path} {path}/index.php index.php
|
try_files {path} {path}/index.php index.php
|
||||||
|
split_path .php
|
||||||
|
}
|
||||||
|
}
|
||||||
|
rewrite @indexFiles {http.matchers.file.relative}
|
||||||
|
|
||||||
# Proxy PHP files to the FastCGI responder
|
# Proxy PHP files to the FastCGI responder
|
||||||
@phpFiles {
|
@phpFiles {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue