Nginx/Apache/PHP Hidden Version Number

nginx隐藏版本号的方法
在nginx配置文件nginx.conf中,加入以下代码:
server_tokens off;
apache隐藏版本号的方法
在apache配置文件httpd.conf中,加入以下代码:
ServerTokens Prod ServerSignature Off
php隐藏版本号的方法
在php配置文件php.ini中,加入以下代码:
expose_php = Off
修改完成以后别忘了重启相关服务。
本文地址:
https://www.linuxprobe.com/nginx-apache-php.html
相关推荐
-
MySQL 安装失败,提示Apply Security Settings 的处理办法
MySQL 安装失败,提示Apply Security Settings 的处理办法2025-04-20 01:54:57 -
MySQL事务隔离级别详解2025-04-20 01:44:01
-
一文说清nginx规则匹配(含案例分析)2025-04-20 01:10:02
-
运维服务篇:Nginx常用功能(rewrite重定向/location定位等)
运维服务篇:Nginx常用功能(rewrite重定向/location定位等)2025-04-20 00:55:25 -
php定义变量规则不能包含哪些字符?2025-04-20 00:27:24