转移了三个 WP 到新的服务器,另外两个都没事,有个网站访问提示 File not found.搜了一圈,感觉我的配置也没啥问题啊,想问下出现这种情况还有可能是哪里的问题?
  1 
  2 server {
  3   listen 80;
  4   server_name www.abc.com abc.com;
  5   root /srv/www/abc.com/public_html;
  6   access_log /var/log/www/abc.com.access.log;
  7   error_log /var/log/www/abc.com.error.log;
  8   location / {
  9     index index.php index.html index.htm;
 10     if (-f $request_filename) {
 11       expires 30d;
 12       break;
 13     }
 14     if (!-e $request_filename) {
 15       rewrite ^(.+)$ /index.php?q=$1 last;
 16     }
 17   }
 18   location /nginx-status {
 19      stub_status on;
 20      access_log  off;
 21   }
 22   location ~ \.php$ {
 23     fastcgi_pass unix:/var/run/php/php7.0-fpm.abc.com.sock;
 24     fastcgi_index  index.php;
 25     fastcgi_param  SCRIPT_FILENAME    /srv/www/abc.com/public_html$fastcgi_script_na    me;
 26     fastcgi_param PATH_INFO               $fastcgi_script_name;
 27     include fastcgi_params;
 28   }
 29 }
~      
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.