Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 1.29 KB

File metadata and controls

27 lines (17 loc) · 1.29 KB

Reverse Proxy Cheatsheet as a Request-Response Sequence Diagram

Trying to understand what headers and bodies the requests and responses between client, reverse proxy and backend actually contain.

Getting Host, Port and Scheme right

View Large Version

Request-Response Host, Port, Scheme Sequence Diagram

Getting Subpaths right

View Large Version

Request-Response Subpath Sequence Diagram

Useful cURL Commands

Setting the Host header and being verbose:

curl -vH "Host: example.com" http://localhost/

To also test HTTPS (using SNI) – an alternative to a local /etc/hosts entry:

curl -v --resolve example.com:443:127.0.0.1 https://example.com