HTTP core directives
disable_symlinks directive
http, server, location; default off; since 1.1.15. Restricts symbolic links during supported file opens; platform/module limitations apply. Not a substitute for filesystem permissions.
Formal Syntax & Structure
nginx syntaxnginx
disable_symlinks off | on | if_not_owner [from=part];Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| mode | off | on | if_not_owner | Allow links, reject links, or check ownership, respectively. |
| from | path prefix | Skip checks for the matched initial path; only with on or if_not_owner. |
Working Example
Example Snippetnginx
disable_symlinks on;