Jump to content

Caddy (web server): Difference between revisions

Line 25: Line 25:
}
}
</pre>
</pre>
====To HTTPS====
If you are reverse proxying to another HTTPS, you may need to specify the SNI as follows:
<pre>
dev2.davidl.me {
  reverse_proxy https://192.168.1.41 {
    transport http {
      tls_server_name dev2.davidl.me
    }
  }
}
</pre>
* Try this if you get <code>502</code> errors.


==PHP==
==PHP==