typecho在PHP7.1下点击文章标题无法进入文章

查看:103
本文介绍了typecho在PHP7.1下点击文章标题无法进入文章的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

  • 站点链接:http://roamer.cc

  • 故障现象:点击文章链接,不会进入文章本身

  • env:php7.1+nginx1.10+postgresql9.6

nginx配置如下

server {
        listen 80 ;
        server_name roamer.cc;
        return 301 https://$host$request_uri;
        }

server {
        listen 443 ssl;
        ssl_certificate /etc/letsencrypt/live/roamer.cc/fullchain.pem;
        ssl_certificate_key /etc/letsencrypt/live/roamer.cc/privkey.pem;
        root            /home/www/roamercc/;
        index           index.html index.htm index.php;
        if (!-e $request_filename) {
            rewrite ^(.*)$ /index.php$1 last;
        }
        location ~ .*\.php(\/.*)*$ {
            fastcgi_pass  127.0.0.1:9000;
            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            fastcgi_index  index.php;
             include       fastcgi_params;
        }
        access_log /var/log/nginx/roamercc.access.log combined;
         }

解决方案

在location里加入如下一行试试

fastcgi_split_path_info ^(.+?\.php)(/.*)$;

这篇关于typecho在PHP7.1下点击文章标题无法进入文章的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆