v0.42.2_fix2
This commit is contained in:
1 parent
25148f26eb
commit
a75893d428
16 files changed
+301
-66
No files matched your search
@@ -75,6 +75,8 @@ Example — beta testers by header, office network with a staff cookie for the w
|
||||
- **Local response:** return a chosen `200–599` status, content type and body without connecting to an origin. `HEAD`, `204` and `304` do not return a body.
|
||||
- **Redirect:** issue `301`, `302`, `303`, `307` or `308` to a valid absolute HTTP(S) target. Query preservation is configurable. Redirect rewrite expressions may reference regex captures.
|
||||
|
||||
**Web Service Vhosts do not need a Reverse Proxy backend** just to use a Redirect or Local response location. Only the main Reverse Proxy source or an enabled Proxy location requires a backend pool. To redirect only `/` to an application prefix, choose **Exact** match for `/` (not Prefix `/`, which also matches application subpaths), **Redirect**, and a code such as **302** with an absolute destination URL.
|
||||
|
||||
### Path rewriting
|
||||
|
||||
`preserve` forwards the original path, `strip_prefix` removes the matched prefix, `replace_prefix` substitutes a new normalized prefix and `regex` rewrites using captures such as `$1` or `${name}`. Queries remain intact unless a redirect explicitly changes handling. Public cache keys are based on the client-facing URL, not an internal rewritten backend path.
|
||||
|
||||
Reference in new issue
Block a user