Nginx 不遵循符号链接 [英] Nginx not following symlinks

查看:28
本文介绍了Nginx 不遵循符号链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在 Ubuntu 12.04 上安装了 nginx.但是,nginx 似乎不遵循符号链接.我知道需要对此进行配置更改,但我无法找到进行更改的位置.任何帮助表示赞赏.

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.

推荐答案

nginx 文档:

语法:

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

默认:disable_symlinks 关闭;

Default: disable_symlinks off;

上下文:http、服务器、位置

Context: http, server, location

该指令出现在 1.1.15 版本中.

This directive appeared in version 1.1.15.

这篇关于Nginx 不遵循符号链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆