ApacheBench with mod_gip, mod_deflate

分类:ApacheApacheBench is one of the most common programs used to benchmark web servers.
By default apachebench will run using HTTP/1.0 requests and without compression enabled even if the tested server supports that.

For example:

ab -n 1 -v 4 "http://www.linuxany.com/"

继续阅读 »

Apache Logs: how long does it take to serve a request?

分类:ApacheApache is one complex piece of software, that contains many features most people are normally not using. You can do so many things with apache outside of the default configurations, and I am not going to discuss today about an external module, but about the plain old mod_log_config.

Normally most people will use for apache logging the combined LogFormat, and will not even think there will be other possible additions to that. This normally looks like:

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined

and it contains most of the information we would like to see in the logs. Still there are many other information we can include here… just see below for the full list.

继续阅读 »

Apache:Disable the HTTP TRACE method

分类:ApacheDescription: How to disable the HTTP TRACE method on recent apache versions.

Most vulnerability scanners (like the popular nessus, but commercial ones also) will complain (normally as a low thread or warning level) about TRACE method being enabled on the web server tested.

Normally you will have this enabled by default, but if you want to test if it is really enabled on your server you just have to telnet on the port your web server is running and request for “TRACE / HTTP/1.0” if you get a positive reply it means TRACE is enabled on your system. The output of a server with TRACE enabled will look like:

继续阅读 »

Linux,数据中心首选

你是否还记得曾经的Linux操作系统,那是一个除了大学生和Unix呆子以外,几乎只对黑客、业余无线电操作员和象牙塔里的学生们有价值的利基操作系统。没有人会把一台使用Linux操作系统的电脑安置在数据中心里。时过境迁,曾经被称之为“小操作系统”的Linux在今天已经可以完全接管你的数据中心。没有乐队的演出,没有股票的下跌,也没有华丽的媒体追捧,Linux就这样悄然步入你的数据中心。

没有乐队的演出,没有股票的下跌,也没有华丽的媒体追捧,Linux就这样悄然步入你的数据中心。

继续阅读 »

你应该使用Linux系统吗?

有没有谁绝对应该使用Linux系统呢?Linux仅仅是开发者或系统管理员把玩的系统么?LinuxInsider近日发起了一场讨论,对哪些人应该使用Linux进行了探讨。下面看看他们的讨论结果:
简单操作电脑的人

“我认为有一类人使用电脑只是为了一些简单的需求,这点很重要,这些年我意识到,很多人买了昂贵的设备和软件许可证,但是他们连计算机一半的计算能力都没用到,更别说那些不必要的软件了”,Kane解释说“这些人大多生活在自己的互联网浏览器世界里。” 所以Kane认为基于Linux的免费、更快、更安全和互联网浏览器可以运行在任何平台的特点,这些人应该使用Linux。

继续阅读 »

如何有效的选择开源库?

丰富的开源资源为开发者提供了便利,但如何在众多开源资源中找到适用自己项目的开源库,总结选用技巧如下:

1. 首先根据自己的项目性质选择合适的开源许可证。

对你所开发软件的顾客和应用对象来说,许可证是否适用非常重要。例如,在受监管的环境下,通常只有Apache2可用。

2. 确定你要解决的问题类型。

例如需要解决的是软件的分发、缓存、持久性还是松散耦合?

继续阅读 »


返回顶部