HTTP Plus API directives
api
Commercial Plus module exposes runtime status and optionally configuration changes. Use read-only access for monitoring and a restricted location.
Formal Syntax & Structure
nginx syntaxnginx
api [write=on|off];Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| write | write=on | write=off | Optional management mutation switch; default read-only. Restrict both read and write access to approved management clients; pin supported API version. |
Working Example
Example Snippetnginx
location /api/ { api write=off; }