nginxsymlink

Nginx not following symlinks


I have installed nginx on Ubuntu 12.04. However, nginx does not seem to follow symlinks. I understand that there is a config change required for this but I am not able to find where to make the change. Any help appreciated.


Solution

  • Have a look at the following config option from nginx docs:

    Syntax:

    disable_symlinks off;
    disable_symlinks on |
    if_not_owner [from=part];
    

    Default: disable_symlinks off;

    Context: http, server, location

    This directive appeared in version 1.1.15.