禁掉Apache web server签名 How to turn off server signature on Apache web server
来源:互联网 发布:c#和java工资相差多少 编辑:程序博客网 时间:2024/05/18 02:07
有的时候,我们为了从安全角度考虑,防止黑客恶意攻击,我们会隐藏掉server信息,比如,一般我们会发现如下信息。
我用的是centos (fedora, RHEL也一样)
$ sudo vi /etc/httpd/conf/httpd.conf
其他的系统(ubuntu, Debian)
$ sudo vi /etc/apache2/apache2.conf
我们可以在这个文件中添加两行信息
ServerSignature Off //隐藏Apache版本信息ServerTokens Prod//第一条命令虽然不会在页面上直接显示,但在response的头部还会包含,所以加上此条。
然后再重启网络
$ sudo service apache2 restart (Debian, Ubuntu or Linux Mint)$ sudo service httpd restart (CentOS/RHEL 6)$ sudo systemctl restart httpd.service (Fedora, CentOS/RHEL 7, Arch Linux)
即可解决该问题。
具体参见:
http://ask.xmodulo.com/turn-off-server-signature-apache-web-server.html
shell脚本参见:
http://write.blog.csdn.net/mdeditor#!postId=47006651
0 0
- 禁掉Apache web server签名 How to turn off server signature on Apache web server
- How to Add Perl CGI Script Support to Your Apache Web Server on Windows
- How to Turn Your Mac Into a Web Server
- install Apache web server on Ubuntu!
- Web server何必Apache
- How to Uninstall Apache Server
- How to start/restart/stop apache server on ubuntu
- How to bounce Web server
- Windows+Apache Web Server+PhpMySqladmin
- Apache Web Server无法启动
- Linux Web Server Apache Install
- How To: Set Up SSL on a Web Server
- Establish a web server [php-mysql-apache] on Windows XP
- Apache 2 Web Server on Ubuntu 10.10 (Maverick)
- Apache 2 Web Server on Ubuntu 10.10 (Maverick)
- How To Turn Up Logging on the Siebel Web Server Extension in Siebel Versions 7.x and 8.x? [ID 477185
- How to Add Perl CGI Script Support to Your Apache Server on Windows
- Compiling and Installing the Apache Web Server
- 自总结的Android Studio快捷键大全
- zookeeper自己的理解
- Android 颜色对照表
- SVN使用教程之——分支、合并
- TCP字节流与UDP数据报
- 禁掉Apache web server签名 How to turn off server signature on Apache web server
- Android中Spinner下拉列表(简单layout.xml,ArrayAdapter和自定义Adapter实现)及下拉框提示prompt问题
- R.layout..、R.id...与R.drawable...
- 判断两个字符串是否由相同的字符组成
- Git的使用
- zookeeper简介
- PyMongo基本使用
- ATS和闰秒那些事儿
- Objective-c面向对象初体验