Caddy: Difference between revisions
imported>Researchcrowbar Add a reverse proxy example for unix socket |
imported>Jeyemwey m fix: closing code tag |
||
Line 50: | Line 50: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Curl will set <code>Host</code> header and TLS <code>SNI</> in the request to <code><virtualhost></code> as desired by Caddy, but will make the actual request against the <code><realhost></code>, e.g. a load-balancer or ingress-controller. | Curl will set <code>Host</code> header and TLS <code>SNI</code> in the request to <code><virtualhost></code> as desired by Caddy, but will make the actual request against the <code><realhost></code>, e.g. a load-balancer or ingress-controller. | ||
Alternatively with http and automatic redirects to https you can extend that call: | Alternatively with http and automatic redirects to https you can extend that call: |