0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00
caddy/modules/caddyhttp/reverseproxy
Matthew Holt 2a8a198568
reverseproxy: Don't overwrite existing X-Forwarded-Proto header
Correct behavior is not well defined because this is a non-standard
header field. This could be a "hop-by-hop" field much like
X-Forwarded-For is, but even our X-Forwarded-For implementation
preserves prior entries. Or, it could be best to preserve the original
value from the first hop, representing the protocol as facing the
client.

Let's try it the other way for a bit and see how it goes.

See https://caddy.community/t/caddy2-w-wordpress-behind-nginx-reverse-proxy/8174/3?u=matt
2020-05-20 11:33:17 -06:00
..
fastcgi fastcgi: php_fastcgi subdirectives to override shortcut behaviour (#3255) 2020-05-18 12:15:38 -06:00
caddyfile.go core: Add support for d duration unit (#3323) 2020-05-11 16:41:11 -06:00
command.go cmd: reverse-proxy: add --insecure flag (with warning) (#3389) 2020-05-12 10:43:18 -06:00
healthchecks.go all: Recover from panics in goroutines 2020-05-12 11:36:20 -06:00
hosts.go core: Rename ParsedAddress -> NetworkAddress 2020-04-07 08:33:45 -06:00
httptransport.go pki: Embedded ACME server (#3198) 2020-05-05 12:35:32 -06:00
reverseproxy.go reverseproxy: Don't overwrite existing X-Forwarded-Proto header 2020-05-20 11:33:17 -06:00
selectionpolicies.go core: Rename ParsedAddress -> NetworkAddress 2020-04-07 08:33:45 -06:00
selectionpolicies_test.go Migrate some selection policy tests over to v2 2019-09-09 21:44:58 -06:00
streaming.go v2: housekeeping: address minor lint complaints (#2957) 2020-01-03 11:33:22 -07:00