4.3.3. TLS Configuration
SSL Termination (SSL Offload):
- App Gateway decrypts, inspects, routes
- Backend receives unencrypted traffic
- Certificate on App Gateway
End-to-End SSL:
- App Gateway decrypts, re-encrypts
- Traffic encrypted to backend
- Certificates on both App Gateway and backends
Rewrite Sets:
Modify headers and URLs:
- Add/modify request/response headers
- Rewrite URL path
- Rewrite URL query string
Use cases:
- Add security headers
- Remove server information
- Rewrite a public path onto the backend's internal path
⚠️ Exam Trap: Redirecting HTTP to HTTPS is not a rewrite. A redirect is its own configuration attached to a routing rule and returns a 301 or 302 to the client. A rewrite changes the request inside the gateway and the client never sees it.