技术解析
转移了三个 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 lo抗投诉服务器cation ~ \.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 }
~