v0.43.0
This commit is contained in:
1 parent
51631810e1
commit
e6176cfce3
28 files changed
+959
-506
No files matched your search
@@ -2,6 +2,16 @@
|
||||
|
||||
Custom locations add exceptions to a Vhost's normal source. They are **not** required for the root path `/`: any request not matched by a custom rule continues to the Vhost's main backend pool or Web Service. Configure them under **Vhosts → Edit → Custom locations**.
|
||||
|
||||
## Panel layout
|
||||
|
||||
The list works as a routing table: each collapsed row shows its order, on/off state, ID, match type, path or conditions, the action (proxy target, Web Service, redirect or fixed response) and what it sets differently from the Vhost (access, headers, cache, own balancing, HTTP policies, error fallback). Click a row to edit it:
|
||||
|
||||
1. **When — match:** ID, match type, path or regular expression, *Internal named location* and optional request conditions.
|
||||
2. **What — action:** proxy to a backend (one backend, the Vhost pool or a group), a Web Service, a redirect or a fixed response, plus the backend path rewrite. Only the fields of the chosen action are shown.
|
||||
3. **Options:** tabs for Access (ACL profile, HTTP methods, countries, inline IP rules), Headers, Cache, Errors (error fallback), Backends & balancing and HTTP policies. A tab shows a short state when the location sets something there; empty tabs inherit the Vhost settings.
|
||||
|
||||
**Add location** offers starting points (path to another backend, files/PHP from a Web Service, redirect, fixed response, internal location for `error_page`, whole-host rule, empty location). They only pre-fill ordinary fields; everything stays editable. The effective behavior preview and the Up/Down/Delete actions remain at the bottom of each location. Saved JSON is identical to earlier releases.
|
||||
|
||||
## Path matching
|
||||
|
||||
| Match mode | Purpose | Priority |
|
||||
@@ -91,6 +101,8 @@ Each location can add request/response header operations (`set`, `append`, `remo
|
||||
|
||||
Mark a location **Internal** to make it unavailable to ordinary public URI matching. A Vhost or location may direct specific origin responses (`403`, `404`, `500`, `502`, `503`, `504`) to a named internal location ID in the same Vhost. The dispatch is internal, not a browser redirect; request context and access evaluation are preserved. Invalid targets or loops are rejected.
|
||||
|
||||
In the panel, the Vhost **Locations** tab has an **Error fallback (error_page)** section for the main route (requests not matched by any location), and each location has the same two controls under **Options → Errors**: the fallback location (suggestions list the enabled internal locations) and a status picker. A location's fallback applies only to requests it handles; it does not inherit the Vhost-level fallback. The statuses are inactive until a fallback location is set, and at least one status stays selected.
|
||||
|
||||
If all you need is a different error **page body**, use **Vhost → Pages → Intercept application error responses**, which keeps the original status without making a second origin request.
|
||||
|
||||
## Not an Nginx configuration parser
|
||||
|
||||
Reference in new issue
Block a user