如何隐蔽版本号信息????

为当前最终发行版之前的所有版本提供支持
回复
shgen
帖子: 30
注册时间: 2010-08-18 14:47
送出感谢: 0
接收感谢: 0

如何隐蔽版本号信息????

#1

帖子 shgen » 2010-12-17 17:02

Apache/2.2.14 (Ubuntu) Server at lxu1.abc.com Port 80
我想把上面这一行隐藏掉,请问怎么弄?

--------------------------------
另外还有一个问题在:(就是问禁止目录浏览,在default设置了没有用)
viewtopic.php?f=54&t=310183
:em06
头像
hiphen
帖子: 803
注册时间: 2010-08-27 15:53
送出感谢: 0
接收感谢: 1 次

Re: 如何隐蔽版本号信息????

#2

帖子 hiphen » 2010-12-17 18:16

ubuntu下,apache版本号在
/etc/apache2/conf.d/security

编辑上述文件,修改里面对应的key值,如下:
ServerSignature Off
ServerTokens Prod
基础问题,请看入门手册http://people.ubuntu.com/~happyaron/udc-cn/lucid-html/

Acer aspire 4736G / Ubuntu 10.04LTS
Asus eeepc900 / Xandros
Nokia N900 / Maemo 1.2.12
shgen
帖子: 30
注册时间: 2010-08-18 14:47
送出感谢: 0
接收感谢: 0

Re: 如何隐蔽版本号信息????

#3

帖子 shgen » 2010-12-20 16:20

Forbidden

You don't have permission to access / on this server.

Apache/2.2.14 (Ubuntu) Server at aa.abc.com Port 80
--------------------
还是存在,好像不管用。
头像
hiphen
帖子: 803
注册时间: 2010-08-27 15:53
送出感谢: 0
接收感谢: 1 次

Re: 如何隐蔽版本号信息????

#4

帖子 hiphen » 2010-12-20 18:24

Really? 你是否重启了啊?

把security贴出来看看你的设定?你执行下面的
cat /etc/apache2/conf.d/security | grep -v "#" | grep -v '^$'
基础问题,请看入门手册http://people.ubuntu.com/~happyaron/udc-cn/lucid-html/

Acer aspire 4736G / Ubuntu 10.04LTS
Asus eeepc900 / Xandros
Nokia N900 / Maemo 1.2.12
shgen
帖子: 30
注册时间: 2010-08-18 14:47
送出感谢: 0
接收感谢: 0

Re: 如何隐蔽版本号信息????

#5

帖子 shgen » 2010-12-21 14:52

of course :
内容如下:
-------------------------------------------

#
# Disable access to the entire file system except for the directories that
# are explicitly allowed later.
#
# This currently breaks the configurations that come with some web application
# Debian packages. It will be made the default for the release after lenny.
#
#<Directory />
# AllowOverride None
# Order Deny,Allow
# Deny from all
#</Directory>


# Changing the following options will not really affect the security of the
# server, but might make attacks slightly more difficult in some cases.

#
# ServerTokens
# This directive configures what you return as the Server HTTP response
# Header. The default is 'Full' which sends information about the OS-Type
# and compiled in modules.
# Set to one of: Full | OS | Minimal | Minor | Major | Prod
# where Full conveys the most information, and Prod the least.
#
#ServerTokens Minimal
#ServerTokens OS
#ServerTokens Full
ServerTokens Prod
#
# Optionally add a line containing the server version and virtual host
# name to server-generated pages (internal error documents, FTP directory
# listings, mod_status and mod_info output etc., but not CGI generated
# documents or custom error documents).
# Set to "EMail" to also include a mailto: link to the ServerAdmin.
# Set to one of: On | Off | EMail
#
ServerSignature Off
#ServerSignature On

#
# Allow TRACE method
#
# Set to "extended" to also reflect the request body (only for testing and
# diagnostic purposes).
#
# Set to one of: On | Off | extended
#
TraceEnable Off
#TraceEnable On
回复

回到 “老旧版本支持”