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

NameTypeDescription
modeoff | on | if_not_ownerAllow links, reject links, or check ownership, respectively.
frompath prefixSkip checks for the matched initial path; only with on or if_not_owner.

Working Example

Example Snippetnginx
disable_symlinks on;
Nginx Reference