今天升级Typecho,从1.2.1升级1.3.0,按照要求覆盖文件之后,打开后台提示点击“完成升级”,结果报错:
找不到 xxx 的网页
找不到与以下网址对应的网页:https://xxx/index.php/action/upgrade?_=a405ab8682b9b0b14ec0be54d7de33c9
HTTP ERROR 404
解决方案,打开站点配置文件,找到最后几行的:
|
1 2 3 4 5 6 |
location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_pass 127.0.0.1:9001; include fastcgi-php.conf; fastcgi_param PATH_INFO $fastcgi_path_info; } |
将其改为:
|
1 2 3 4 5 6 7 8 9 10 11 12 |
location / { try_files $uri $uri/ /index.php?$args; } location ~ \.php($|/) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_pass 127.0.0.1:9001; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; } |
然后保存并重载即可。
马春杰杰