相关疑难解决方法(0)

Nginx:stat()失败(13:权限被拒绝)

我在使用安装在我的ubuntu 12.04机器上的nginx的特定目录时使用默认配置.

server {
        #listen   80; ## listen for ipv4; this line is default and implied
        #listen   [::]:80 default ipv6only=on; ## listen for ipv6

        index index.html index.htm;

        # Make site accessible from http://localhost/
        server_name localhost;

        location / {
                # First attempt to serve request as file, then
                # as directory, then fall back to index.html
                root /username/test/static;
                try_files $uri $uri/ /index.html;
                # Uncomment to enable naxsi on this location
                # include /etc/nginx/naxsi.rules
        }
...

...
}
Run Code Online (Sandbox Code Playgroud)

我只想要一个简单的静态nginx服务器来提供该目录之外的文件.但是,检查error.log我看到了

2014/09/10 …
Run Code Online (Sandbox Code Playgroud)

ubuntu nginx

87
推荐指数
8
解决办法
15万
查看次数

标签 统计

nginx ×1

ubuntu ×1