# \#NGINX

**URL:** https://www.shiqidu.com/tag/77-tag/77.md

[最新](https://www.shiqidu.com/latest.md) · [类别](https://www.shiqidu.com/categories.md) · [标签](https://www.shiqidu.com/tags.md)

---

## [Nginx 添加Lua支持](https://www.shiqidu.com/t/topic/824)

<div class="topic-metadata">

**Author:** [@Leon](https://www.shiqidu.com/u/Leon)\
**回复:** 0\
**最近更新：:** [2024 年11 月 7 日 11:00 UTC](https://www.shiqidu.com/t/topic/824 "2024-11-07T11:00:32Z")

</div>

tar -xvf lua-nginx-module-0.10.14.tar.gz tar -xvf ngx\_devel\_kit-0.3.1.tar.gz cd /root/lnmp2.1/src/nginx-1.20.1 configu…

---

## [NGINX 引用 lua 时开启调试](https://www.shiqidu.com/t/topic/762)

<div class="topic-metadata">

**Author:** [@Leon](https://www.shiqidu.com/u/Leon)\
**回复:** 0\
**最近更新：:** [2021 年11 月 26 日 08:38 UTC](https://www.shiqidu.com/t/topic/762 "2021-11-26T08:38:23Z")

</div>

在nginx中使用lua，编写lua脚本时，如果lua代码报错了，也不知道是哪里错的，因为没有报错信息，只是显示 500 Internal Server Error，调试都没法调试，想看到lua的报错信息很简单，只需要修改一下nginx e…

---

## [Nginx防盗链配置](https://www.shiqidu.com/t/topic/432)

<div class="topic-metadata">

**Author:** [@Leon](https://www.shiqidu.com/u/Leon)\
**回复:** 0\
**最近更新：:** [2018 年5 月 31 日 05:50 UTC](https://www.shiqidu.com/t/topic/432 "2018-05-31T05:50:55Z")

</div>

location ~\*^.+\\.(jpg|gif|png|swf|flv|wma|wmv|asf|mp3|mmf|zip|rar)$ { valid\_referers none blocked \*.shiqidu.com;…

---

## [关于fopen创建文件失败的问题](https://www.shiqidu.com/t/topic/404)

<div class="topic-metadata">

**Author:** [@Leon](https://www.shiqidu.com/u/Leon)\
**回复:** 1\
**最近更新：:** [2018 年4 月 19 日 03:18 UTC](https://www.shiqidu.com/t/topic/404 "2018-04-19T03:18:17Z")

</div>

目录权限没有问题，本地可以创建成功，生产环境却不行。可以考虑检查open\_basedir的设置，看下是否有问题。 open\_basedir 将PHP所能打开的文件限制在指定的目录树中，包括文件本身。当程序要使用例如fopen()或f…

---

## [cgi、fastcgi、php-fpm、nginx的个人理解。](https://www.shiqidu.com/t/topic/323)

<div class="topic-metadata">

**Author:** [@Leon](https://www.shiqidu.com/u/Leon)\
**回复:** 0\
**最近更新：:** [2017 年11 月 29 日 09:53 UTC](https://www.shiqidu.com/t/topic/323 "2017-11-29T09:53:01Z")

</div>

CGI（Common Gateway Interface） 公共网关接口，webserver与cgi程序之间传递信息的接口标准。保证webserver传递过来的数据是标准格式的。 平时说的cgi一般值cgi程序，即实现了cgi标准的程序…

---

## [Nginx、Apache 隐藏thinkphp的index.php入口文件](https://www.shiqidu.com/t/topic/178)

<div class="topic-metadata">

**Author:** [@Leon](https://www.shiqidu.com/u/Leon)\
**回复:** 0\
**最近更新：:** [2017 年5 月 13 日 09:55 UTC](https://www.shiqidu.com/t/topic/178 "2017-05-13T09:55:34Z")

</div>

不管是为了伪静态还是为了url美观，我们经常需要隐藏掉项目的入口文件index.php。 在thinkphp（3.2.x）中你首先需要去项目的配置文件config.php中把路由模式先改为pathinfo模式('URL\_MODEL' =\> …

---

## [nginx配置rewrite规则总结](https://www.shiqidu.com/t/topic/121)

<div class="topic-metadata">

**Author:** [@Leon](https://www.shiqidu.com/u/Leon)\
**回复:** 2\
**最近更新：:** [2016 年12 月 12 日 15:31 UTC](https://www.shiqidu.com/t/topic/121 "2016-12-12T15:31:56Z")

</div>

1. location正则写法 一个示例： location = / { # 精确匹配 / ，主机名后面不能带任何字符串 \[ configuration A \] } location / { # 因为所有的地址都以 / …
