惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Martin Fowler
Martin Fowler
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
IT之家
IT之家
美团技术团队
酷 壳 – CoolShell
酷 壳 – CoolShell
Y
Y Combinator Blog
T
Tailwind CSS Blog
D
Docker
博客园 - Franky
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Google DeepMind News
Google DeepMind News
腾讯CDC
Vercel News
Vercel News
Engineering at Meta
Engineering at Meta
U
Unit 42
The Cloudflare Blog
S
SegmentFault 最新的问题
WordPress大学
WordPress大学
爱范儿
爱范儿
Recent Announcements
Recent Announcements
博客园 - 聂微东
博客园 - 叶小钗
H
Help Net Security
MyScale Blog
MyScale Blog

博客园 - 绿水青山

问题总结 Windows/Linux 生成iOS证书及p12文件 aws supported language mysql导入导出 .net core注入时作用域的说明 Attempt to fetch logical page (1:8019) in database 5 failed. It belongs to allocation unit 720575947 sas…… SQL使用开窗函数与CTE查询每月销售额的前几名 SQL2012删除作业失败的处理 使用JavaScript打印网页指定DIV区域 WlN7下硬盘安装WINXP Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its depe SSRS中错误:为用户“NT AUTHORITY\NETWORK SERVICE”授予的权限不足,无法执行此操作。 (rsAccessDenied)解决方案 - 绿水青山 U盘安装xp 数字签名 SQL无法连接问题 div在父容器中水平垂直居中 SQL2008自定义聚合函数 error:unknow filesystem iis出现-2145318902错误
关于nginx承载php时,页为为空白的问题
绿水青山 · 2024-05-14 · via 博客园 - 绿水青山

就是nginx的配置问题

server {
        listen 80;

        root /platform/web/public;
        index index.php index.html index.htm;

        server_name web.kyrin.com www.kyrin.com;

        location / {
                try_files $uri $uri/ /index.php?$query_string;
        }
        location ~ \.php$ {
                try_files $uri =404;

                fastcgi_split_path_info  ^(.+\.php)(/.+)$;
                fastcgi_index            index.php;
                fastcgi_pass             unix:/var/run/php/php7.2-fpm.sock;
                include                  fastcgi_params;
                fastcgi_param   PATH_INFO       $fastcgi_path_info;
                fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
        }
}

尤其注意如下代码行,必须要有:

          fastcgi_param   PATH_INFO       $fastcgi_path_info;
                fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;

posted on 2024-05-14 20:58  绿水青山  阅读(149)  评论()    收藏  举报