Nginx不关注符号链接 [英] Nginx not following symlinks

查看:202
本文介绍了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.

推荐答案

语法:

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天全站免登陆