Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Locations can be nested, so you can have a setup similar to this:

Drawio
baseUrlhttps://ceptor.atlassian.net/wiki
diagramNameNested Locations.drawio
tempPreviewNested Locations.png
width500
zoom1
pageId852020
custContentId1030553621
lbox1
contentVer1
height500
revision1

In this example, the first location matches every request - and it just adds a Via: HTTP header to the response - the next location matches any request where the hostname matches the pattern app.* - this location does not need to do anything itself (although it can) - and once that is done, any eventual nested locations get a chance to look further at the request - in this case we have an anonymous part of the site, and a secret part, which requires specific group membership to be able to access. If neither the anonymous or the secret part is hit, the default action is to respond with an error.

...