Routing
This page is automatically synced from
docs-en/rules/routing.md. Language: English | 中文
Routing Rules
Section titled “Routing Rules”Routing rules decide the upstream target or downstream proxy path.
Common Protocols
Section titled “Common Protocols”example.com host://127.0.0.1:3000example.com xhost://127.0.0.1:3001example.com proxy://127.0.0.1:8080example.com https://backend.example.comws://example.com/socket ws://127.0.0.1:9001/sockethost redirects to a target host while preserving request path. xhost is a stronger redirect operation. proxy forwards through another proxy. http and https explicitly rewrite the upstream scheme and target. WebSocket routing uses ws and wss.
For HTTPS path-aware routing, enable TLS interception for the relevant host or use rule-level tlsIntercept://.