[edit] internal

Syntax: internal
Default:
Context: location
Reference: internal


internal indicates that the matching location can be used only for so called "internal" requests.

For external requests it will return the error "Not found" (404).

Internal requests are the following:

An example to prevent clients fetching error pages directly:

error_page 404 /404.html;
location  /404.html {
  internal;
}

Module: HttpCoreModule