|
@ -82,12 +82,17 @@ func (t *Transport) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { |
|
|
//
|
|
|
//
|
|
|
// is equivalent to:
|
|
|
// is equivalent to:
|
|
|
//
|
|
|
//
|
|
|
// matcher indexFiles {
|
|
|
// matcher canonicalPath {
|
|
|
// file {
|
|
|
// file {
|
|
|
// try_files {path} index.php
|
|
|
// try_files {path}/index.php
|
|
|
|
|
|
// }
|
|
|
|
|
|
// not {
|
|
|
|
|
|
// path */
|
|
|
// }
|
|
|
// }
|
|
|
// }
|
|
|
// }
|
|
|
// rewrite match:indexFiles {http.matchers.file.relative}
|
|
|
// redir match:canonicalPath {path}/ 308
|
|
|
|
|
|
//
|
|
|
|
|
|
// try_files {path} {path}/index.php index.php
|
|
|
//
|
|
|
//
|
|
|
// matcher phpFiles {
|
|
|
// matcher phpFiles {
|
|
|
// path *.php
|
|
|
// path *.php
|
|
@ -101,8 +106,8 @@ func (t *Transport) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { |
|
|
// Thus, this directive produces multiple routes, each with a different
|
|
|
// Thus, this directive produces multiple routes, each with a different
|
|
|
// matcher because multiple consecutive routes are necessary to support
|
|
|
// matcher because multiple consecutive routes are necessary to support
|
|
|
// the common PHP use case. If this "common" config is not compatible
|
|
|
// the common PHP use case. If this "common" config is not compatible
|
|
|
// with a user's PHP requirements, they can use the manual approach as
|
|
|
// with a user's PHP requirements, they can use a manual approach based
|
|
|
// above to configure it precisely as they need.
|
|
|
// on the example above to configure it precisely as they need.
|
|
|
//
|
|
|
//
|
|
|
// If a matcher is specified by the user, for example:
|
|
|
// If a matcher is specified by the user, for example:
|
|
|
//
|
|
|
//
|
|
|