求助大神。服务器网站挂了File not found.

yg240 27天前 121

本人技术有限 求助大家 所有的 网站页面显示 File not found. 不知道为何?

最新回复 (3)
  • yg240 27天前
    引用 2
    server {
        listen                80;
        server_name           www;
        server_name           w1987.cn;
        server_name           www.w1987.cn;
        server_name           192.168.123.49;
        charset               utf-8;
        keepalive_timeout     75s;
        keepalive_requests    100;
        access_log            /mnt/sdb5/web/sites/www/log/nginx/access.log;
        error_log             /mnt/sdb5/web/sites/www/log/nginx/error.log;
        pagespeed             on;
        pagespeed             FileCachePath /mnt/sdb5/web/sites/www/cache/ngx_pagespeed;
        pagespeed             LowercaseHtmlNames on;
        pagespeed             PreserveUrlRelativity on;
        pagespeed             RespectVary on;
        pagespeed             XHeaderValue 'Powered By AppNode';
        pagespeed             EnableFilters remove_comments,collapse_whitespace,combine_css,rewrite_css,sprite_images,combine_javascript,rewrite_javascript,rewrite_images,lazyload_images,prioritize_critical_css,extend_cache;
        pagespeed             FileCacheCleanIntervalMs 3600;
        pagespeed             FileCacheSizeKb 102400;
        pagespeed             FileCacheInodeLimit 500000;
        pagespeed             AdminPath /pagespeed_admin;
        pagespeed             PurgeMethod PURGE;
        pagespeed             EnableCachePurge on;
        root                  /mnt/sdb5/web/sites/www/www/www;
        client_max_body_size  1000m;

        location / {
            index      index.html index.htm index.php;
            try_files  $uri $uri/ /index.php?$args;
        }

        location ~ '\.pagespeed\.([a-z]\.)?[a-z]{2}\.[^.]{10}\.[^.]+' {
            add_header  '' '';
        }

        location ~ ^/pagespeed_static/ {
        }

        location ~ ^/ngx_pagespeed_beacon$ {
        }

        location ~ ^/pagespeed_admin {
            allow  127.0.0.1;
            deny   all;
        }

        location ~ ^/.+\.php(/|$) {
            include                  conf.sitemgr.d/global/conf/fastcgi_params;
            fastcgi_index            index.php;
            fastcgi_param            SCRIPT_FILENAME /mnt/sdb5/web/sites/www/www/www$fastcgi_script_name;
            fastcgi_split_path_info  ^(.+\.php)(/.*)$;
            fastcgi_param            PATH_INFO $fastcgi_path_info;
            fastcgi_param            PATH_TRANSLATED $document_root$fastcgi_path_info;
            fastcgi_param            HOSTNAME $HOSTNAME;
            fastcgi_param            PATH /usr/local/bin:/usr/bin:/bin;
            fastcgi_param            TMP /tmp;
            fastcgi_param            TMPDIR /tmp;
            fastcgi_param            TEMP /tmp;
            fastcgi_read_timeout     60s;
            fastcgi_pass             unix:/mnt/sdb5/web/sites/www/php-pool/php-fpm.sock;
        }

        location ~* \.(js|css|png|jpg|jpeg|gif|ico|bmp|swf|eot|svg|ttf|woff|woff2)$ {
            expires        30d;
            log_not_found  off;
        }
    }
  • yg240 27天前
    引用 3
    问题 找到了    地址不对,怎么系统自己修改了 不明白 
      root                  /mnt/sdb5/web/sites/www/www/www
    正确  root                  /mnt/sdb5/web/sites/www/www
  • piao 10天前
    引用 4
    没有修改。本身就多一个www目录
返回
发新帖