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

推荐订阅源

Google DeepMind News
Google DeepMind News
F
Fortinet All Blogs
量子位
G
Google Developers Blog
J
Java Code Geeks
N
Netflix TechBlog - Medium
博客园 - 聂微东
宝玉的分享
宝玉的分享
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
月光博客
月光博客
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
爱范儿
爱范儿
雷峰网
雷峰网
M
MIT News - Artificial intelligence
T
Tailwind CSS Blog
V
Visual Studio Blog
阮一峰的网络日志
阮一峰的网络日志
博客园 - 三生石上(FineUI控件)
Microsoft Azure Blog
Microsoft Azure Blog
aimingoo的专栏
aimingoo的专栏
Martin Fowler
Martin Fowler
有赞技术团队
有赞技术团队
T
The Blog of Author Tim Ferriss

博客园 - 绿水青山

问题总结 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)  评论()    收藏  举报