linux下升级apache?

html-css013

linux下升级apache?,第1张

用yum,最简单的解决方案,自动通过GnuPG来进行数字签名验证。如果有经验,也可以使用apt-rpm来管理系统软件包的升级。另外提问请说明你的系统名称及版本,这有助于问题的解决啊。

手工安装软件包是安全漏洞,危险比使用gcc和rpmbuild大很多。举的很浅显的例子,使用gdebi给ubuntu安装下载的deb包时前后安装两个软件包每次都需要密码认证,而其他管理软件都使用了sudo模式的gksu,输入一次密码可以15分钟内不再输入。

另外,更新apache时,需要停止apache服务再更新,否则会安装失败。

Apache Tomcat是一个流行的开放源码的JSP应用服务器程序。

Apache Tomcat

7.0.0-7.0.27、6.0.0-6.0.35、5.5.0-5.5.35存在多个安全漏洞,成功利用后可允许攻击者绕过安全限制并执行非法操作。

Description

A weakness and a vulnerability have been reported in Apache

Tomcat, which can be exploited by malicious people to bypass certain security

restrictions and cause a DoS (Denial of Service).

1) An error within the “parseHeaders()” function

(InternalNioInputBuffer.java) when parsing request headers does not properly

verify the permitted size and can be exploited to trigger an OutOfMemoryError

exception via specially crafted headers.

This vulnerability is reported in versions 6.0.0-6.0.35 and 7.0.0-7.0.27.

2) An error within DIGEST authentication mechanism does not properly check

server nonces.

This weakness is reported in versions 5.5.0-5.5.35, 6.0.0-6.0.35, and

7.0.0-7.0.29.

Solution

Update to version 5.5.36, 6.0.36, or 7.0.30.

说真的,apache在配置方面还真不如nginx、uhttpd、lighttpd等轻量级web服务器来得方便快捷。

如果你想实现你所说的功能,那么有一个办法:

首先,使用alias创建一个非不是名为static目录的其它专用虚拟目录,比如:my_static

然后启用apache的rewrite功能(URL重写)

将凡是指向static目录的、css/js/gif/jpg/jpeg/txt等纯静态请求,隐式指向到my_static目录下。

如果你不懂得如何写rewrite规则,可以追问一下,我给你写一下,如果你懂得,我就不麻烦了,呵呵,偷个懒。