博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
nginx - Access Denied 问题排查
阅读量:2307 次
发布时间:2019-05-09

本文共 647 字,大约阅读时间需要 2 分钟。

  • In your PHP-fpm www.conf set security.limit_extensions to .php or

    .php5 or whatever suits your environment. For some users, completely
    removing all values or setting it to FALSE was the only way to get it
    working.

  • In your nginx config file set fastcgi_pass to your socket address

    (e.g. unix:/var/run/php-fpm/php-fpm.sock;) instead of your server
    address and port.

  • Check your SCRIPT_FILENAME fastcgi param and set it according to the

    location of your files.

  • In your nginx config file include fastcgi_split_path_info

    ^(.+.php)(/.+)$; in the location block where all the other fastcgi
    params are defined.

  • In your php.ini set cgi.fix_pathinfo to 1

转载:

你可能感兴趣的文章
JavaWeb文件上传
查看>>
解决tomcat内存不足问题:java.lang.OutOfMemoryError: PermGen space
查看>>
JDBC连接常用数据库的URL
查看>>
iReport 按某个字段(属性)值分页打印
查看>>
矢量图控件VectorDraw使用教程:添加vdFramedControl (Visual C# 2005)
查看>>
矢量图控件VectorDraw使用教程:ActionUtility对象
查看>>
使用Dynamsoft存储和检索SQL Server中的扫描图像
查看>>
分享30个最流行的jQuery插件(上)
查看>>
分享30个最流行的jQuery插件(下)
查看>>
10款最出色的免费数据库管理工具
查看>>
26款开源Java测试工具
查看>>
4款.Net报表控件优势对比分析
查看>>
FusionCharts与Highcharts图表类型对比
查看>>
版本控制工具SourceAnywhere v5.1正式发布啦
查看>>
2014年最值的期待的10款Mac和iOS开发工具
查看>>
在水晶报表( Crystal Reports)中插入IDAutomation条形码(附视频)
查看>>
使用FusionCharts ASP Class创建图表
查看>>
LEADTOOLS代码示例大全(一)
查看>>
细述PhpStorm 对 AngularJS 的支持
查看>>
使用FusionChart实现数据库的动态数据交互
查看>>