数据迁移记
warning:
这篇文章距离上次修改已过1494天,其中的内容可能已经有所变动。
嗯~
终于又出山了,为数据迁移了一个好地方。
迁移后网站一直中转不了,nginx配置最后改为以下后终于OK:
server {
listen 80;
server_name 127.0.0.1; # 改为自己的域名,没域名修改为127.0.0.1
charset utf-8;
client_max_body_size 50000m;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
}
然后伪静态规则修改为以下:
location ~ .*\.php(\/.*)*$
{
fastcgi_pass unix:/tmp/网站.sock;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
include fcgi.conf;
fastcgi_param DOCUMENT_ROOT 网站目录/web$subdomain;
fastcgi_param SCRIPT_FILENAME 网站目录/web$subdomain$fastcgi_script_name;
}
参考:
https://blog.csdn.net/Bobdragery/article/details/104473712