Skip to content
עברית

Guide and reference

Reverse Proxies

A reverse proxy accepts requests for a service and forwards them to selected origins. It can terminate TLS, balance load, cache responses and enforce access policies. The client may never connect directly to the application server, which changes how source addresses, schemes and request headers must be interpreted.

Guide

Reverse Proxies

A reverse proxy accepts requests for a service and forwards them to selected origins. It can terminate TLS, balance load, cache responses and enforce access policies. The client may never connect directly to the application server, which changes how source addresses, schemes and request headers must be interpreted.

Reference

How reverse proxies work

Reverse proxies accept client connections and create separate upstream exchanges with origins.

Reference

Nginx reverse proxy

Nginx reverse proxying uses upstream and proxy configuration to forward requests to origins.

Reference

Apache reverse proxy

Apache reverse proxying uses mod_proxy handlers and configured upstream mappings.

Reference

HAProxy

HAProxy balances transport or application traffic with configurable health checks and routing policy.

Reference

Traefik

Traefik reverse-proxies requests using configured routers, services and optional dynamic discovery.

Reference

Caddy

Caddy is a web server and reverse proxy with automatic HTTPS capabilities in supported configurations.

Reference

Reverse proxy vs. load balancer

Reverse proxying intermediates a service; load balancing distributes work among backend instances.

Reference

SSL termination

SSL/TLS termination decrypts one hop and requires separate assessment of the origin connection.

Reference

Request forwarding

Request forwarding sends an upstream exchange while preserving required HTTP semantics and metadata.

Reference

Header forwarding

Header forwarding must distinguish trusted proxy-generated metadata from untrusted client input.

Reference

X-Forwarded-For

X-Forwarded-For carries proxy-chain addresses that require an explicit trusted-proxy interpretation.

Reference

X-Forwarded-Proto

X-Forwarded-Proto reports the original scheme when supplied by a trusted proxy.

Reference

Forwarded

Forwarded standardizes selected proxy metadata including client, intermediary and scheme information.

Reference

Real client IP

Client-IP reconstruction requires trusted intermediary boundaries rather than blindly trusting forwarded headers.

Reference

Trusted proxies

Trusted proxies are explicitly approved intermediaries whose forwarding metadata may be accepted.

Reference

Host headers

Host fields identify the requested authority and should be validated against accepted site names.

Reference

Reverse proxy caching

Reverse-proxy caching reuses upstream responses with keys and policies that preserve user separation.

Reference

Reverse proxy security

Reverse-proxy security protects origin trust, accepted hosts and forwarding metadata boundaries.

Reference

WebSocket proxying

WebSocket proxying requires compatible connection establishment, long-lived forwarding and timeout handling.

Zaltzman.net · Your choice

Privacy preferences

Choose whether to link returning visits and remember display settings. Public content remains available without optional cookies.

Essential cookies

Always on

Secure forms, login sessions and your privacy choice.

What is included?

Session and CSRF protection, your privacy choice for up to 180 days, and Cloudflare security services. These do not authorise optional visitor analytics.

Analytics & returning visits

Store page history, visit times, IP and approximate location under one browser identifier, including return visits after an IP change.

How is this information used?

Authorised administrators use the history to understand usage and improve the site. No targeted ads, keystroke recording or fingerprinting. Turning this off deletes the history linked to your current identifier from the active database.

Remember display preferences

Save text size, contrast and other accessibility choices locally for your next visit.

Download my browser history

Turning analytics off deletes the current history and stops new collection.

Website operator: The Zaltzman Family
[email protected]

Zaltzman.net · Display settings

Accessibility tools

Adjust reading and navigation to suit you. Analytics consent is not required.

Text size
100%