ownCloud nginx index.php/apps/files/ 错误

2016-10-11 0 条评论 1.34k 次阅读 0 人点赞

nginx对php不友好.需要在nginx的conf开启pathinfo.conf如下是我的conf:

server
    {
        listen 80 default_server;
        #listen [::]:80 default_server ipv6only=on;
        server_name 0.0.0.0;
        index index.html index.htm index.php;
        root  /home/wwwroot/default;
        #error_page   404   /404.html;
       #这句才是关键我是lnmp.org
        include enable-php-pathinfo.conf;
        location /nginx_status
        {
            stub_status on;
            access_log   off;
        }
        location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
        {
            expires      30d;
        }
        location ~ .*\.(js|css)?$
        {
            expires      12h;
        }
        location ~ /\.
        {
            deny all;
        }
        access_log  /home/wwwlogs/access.log;
    }

TestSmirk

这个人太懒什么东西都没留下

文章评论(0)