Matt Holt
484cee1ac1
fastcgi: Implement / redirect for index.php with php_fastcgi directive ( #2754 )
* fastcgi: Implement / redirect for index.php with php_fastcgi directive
See #2752 and https://caddy.community/t/v2-redirect-path-to-path-index-php-with-assets/6196?u=matt
* caddyhttp: MatchNegate implements json.Marshaler
* fastcgi: Add /index.php element to try_files matcher
* fastcgi: Make /index.php redirect permanent
5 years ago
Matthew Holt
2459c292a4
caddyfile: Improve Dispenser.NextBlock() to support nesting
5 years ago
Matthew Holt
0cf592fa2e
New 'php_fastcgi' directive for convenient PHP+FastCGI reverse proxy
5 years ago
Matthew Holt
c32b7e8865
fastcgi: Make EnvVars a map instead of a slice
5 years ago
Matthew Holt
b4f4fcd437
Migrate some selection policy tests over to v2
5 years ago
Matthew Holt
50e62d06bc
reverse_proxy: Caddyfile integration (and fix blocks in Dispenser)
5 years ago
Matthew Holt
14f9662f9c
Various fixes/tweaks to HTTP placeholder variables and file matching
- Rename http.var.* -> http.vars.* to be more consistent
- Prefixing a path matcher with * now invokes simple suffix matching
- Handlers and matchers that need a root path default to {http.vars.root}
- Clean replacer output on the file matcher's file selection suffix
5 years ago
Matthew Holt
21d7b662e7
fastcgi: Use request context as base, not a new one
5 years ago
Matthew Holt
d2e46c2be0
fastcgi: Set default root path; add interface guards
5 years ago
Matthew Holt
80b54f3b9d
Add original URI to request context; implement into fastcgi env
5 years ago
Matthew Holt
0830fbad03
Reconcile upstream dial addresses and request host/URL information
My goodness that was complicated
Blessed be request.Context
Sort of
5 years ago
Matthew Holt
026df7c5cb
reverse_proxy: WIP refactor and support for FastCGI
5 years ago