This commit is contained in:
Mateusz Gruszczyński committed 2026-11-23 12:23:41 +01:00
1 parent 54b2ac0838
commit 3b953dcdc6
23 files changed
+643 -29

No files matched your search

+2 -2
View File
@@ -59,7 +59,7 @@ Example — beta testers by header, office network with a staff cookie for the w
### Routing tester
**Vhosts → Edit → Custom locations → Test routing** evaluates the unsaved draft in the browser: enter a method, URL, client IP, country and headers (cookies as a `Cookie:` header) to see which location wins, why every other location was skipped (path ✓/✗ and each condition ✓/✗), the backend or hash target and whether the cache is bypassed. Its matching logic is checked against the proxy with the shared cases in `tests/fixtures/routing_conditions_cases.json` (`tools/dev/test_routing_tester.js`). Regular expressions are run by the browser engine, which covers the common syntax; the server always validates the saved configuration.
**Vhosts → Edit → Custom locations → Test routing** evaluates the unsaved draft in the browser: enter a method, URL, client IP, country and headers (cookies as a `Cookie:` header) to see which location wins, why every other location was skipped (path ✓/✗ and each condition ✓/✗), the backend or hash target and whether the cache is bypassed. Its matching logic is checked against the proxy with the shared cases in `tests/fixtures/routing_conditions_cases.json`. Regular expressions are run by the browser engine, which covers the common syntax; the server always validates the saved configuration.
## Actions
@@ -76,7 +76,7 @@ Example — beta testers by header, office network with a staff cookie for the w
## Headers, access and method rules
Each location can add request/response header operations (`set`, `append`, `remove`), reusable ACL profiles, inline IP/CIDR rules, country access and HTTP-method allow/block lists. Every applicable host and Vhost policy must still pass; a location cannot remove a higher-level denial. Transport/forwarded-identity headers are protected from unsafe overrides. Authentication, rate limits, WebSocket policy and other Vhost settings continue to apply.
Each location can add request/response header operations (`set`, `append`, `remove`; values may use variables such as `%[srv_id]` — see [Variables in header values](RESPONSE_DELIVERY.md#variables-in-header-values-diagnostic-headers)), reusable ACL profiles, inline IP/CIDR rules, country access and HTTP-method allow/block lists. Every applicable host and Vhost policy must still pass; a location cannot remove a higher-level denial. Transport/forwarded-identity headers are protected from unsafe overrides. Authentication, rate limits, WebSocket policy and other Vhost settings continue to apply.
## Internal error fallback