nginx symlinks permission denied / 403 Forbidden on Mac OSX
Posted
by
Levi Roberts
on Server Fault
See other posts from Server Fault
or by Levi Roberts
Published on 2013-12-05T15:42:02Z
Indexed on
2014/05/26
21:32 UTC
Read the original article
Hit count: 517
So I have an nginx server running on Mac OSX and I am trying to create a symlink in my nginx www directory from somewhere else. In the browser I get the wonderful 403 Forbidden
error.
I have also tried chmod'ing my life away for the past few hours.
There doesn't seem to be anything on the stack about it. One thing concerns me is that I am not sure if symlinks are directly supported by ngninx on Mac.
Trying to use disable_symlink
directive results in:
nginx: [emerg] unknown directive "disable_symlinks" in /usr/local/etc/nginx/nginx.conf:44`
Some info about my setup:
nginx -v
: nginx version: nginx/1.4.2
To create the symlink I do the following:
cd /Users/levi/www
ln -s "/Users/levi/Desktop/.../client" "/Users/levi/www/client"
The error in the log:
[error] 11864#0: *7 open() "/Users/levi/www/client" failed (13: Permission denied), client: 127.0.0.1, server: _, request: "GET /client HTTP/1.1", host: "localhost"
Any help is much appreciated. Let me know if there's any more information I can give you.
© Server Fault or respective owner