G
G
gromopetr2016-10-24 21:02:10
linux
gromopetr, 2016-10-24 21:02:10

How to make nginx understand symbolic links in root (document_root)?

The nginx config has this:
root /web/website.com/current/
where current is a symbolic link to another section.
permissions are 777 all the way and the owner is nginx, but still 404 page in the browser.
In logs why that failed (13: Permission denied).
If the symbolic link is replaced with a normal section, everything is ok.
added disable_symlinks off; but didn't help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hOtRush, 2016-11-03
@hOtRush

nginx must have rights to the section the link refers to. chown www-data:www-data .. or something like that

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question