最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
nginx中隐藏响应头/返回头信息/php版本号/服务器信息
时间:2022-06-30 18:54:35 编辑:袖梨 来源:一聚教程网
首先隐藏nginx版本信息,只需编辑 nginx.conf 文件
添加一行
| 代码如下 | 复制代码 |
|
server_tokens off; http { |
|
响应头隐藏PHP版本休息,编辑php.ini文件找到expose_php = On , 修改为 expose_php = Off
| 代码如下 | 复制代码 |
|
;;;;;;;;;;;;;;;;; ; Decides whether PHP may expose the fact that it is installed on the server |
|