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