1# $Id: httpd.conf,v 1.7 2007/11/01 00:26:43 maxim Exp $
2#
3# Example of configuration for simple benchmarking
4# See comments below.
5#
6# Tiny pseudo-file:
7# ab -n 10000 -c 200 http://test:8001/p.gif
8#
9# Small file:
10# ab -n 10000 -c 200 http://test:8001/small.txt
11#
12# Medium file:
13# ab -n 5000 -c 200 http://test:8001/medium.txt
14#
15# Cached medium file:
16# ab -n 5000 -c 200 http://test:8001/cached.txt
17#
18# Big file:
19# ab -n 200 -c 50 http://test:8001/test.mp3
20#
21# Backend test:
22# ab -n 200 -c 50 http://test:8001/backend/
23
24
25Listen 8001
26
27# Connections 1000
28# ProxyConnections 100
29# ConnectionsPerIP 50
30# Timeout 60
31# KeepAliveTimeout 15
32# KeepAlive on
33# MaxBuffer 128k
34# MaxPostSize 256k
35# Log on
36# SkipWWW off
37# SkipPort on
38# Listing off
39# FilesCheck 30
40# FilesKeep 10
41# ServerTokens on
42# Admin webmaster@site.ru
43
44# do not write access log
45Log off
46
47Connections 5000
48# Benchmarking is from one IP, so set high limit
49ConnectionsPerIP 50000
50
51
52# Uncomment next lines for better performance on FreeBSD
53# while transfering big files:
54# SendBuffer 128k
55# LowWaterMark 120k
56
57
58# Define small cache.
59# configure 0W with --cache option, and uncomment next line:
60# Cache size=1M
61
62
63
64Index index.html index.htm
65
66
67Mime text/plain;\ charset=windows-1251 *
68
69Mime application/mshelp chm hlp
70Mime application/msword doc
71Mime application/octet-stream gz tgz exe com class cab dpr iso img
72Mime application/octet-stream vom vmw fsa gepm gpm iva 3pm
73Mime application/pdf pdf
74Mime application/postscript eps ps
75Mime application/rar rar
76Mime application/rtf rtf
77Mime application/vnd.ms-excel xls
78Mime application/vnd.ms-powerpoint ppt
79Mime application/x-7zip-compressed 7z
80Mime application/x-bittorrent torrent
81Mime application/x-dvi dvi
82Mime application/x-java-archive jar
83Mime application/x-java-class class
84Mime application/x-javascript js
85Mime application/x-msi msi
86Mime application/x-shockwave-flash swf
87Mime application/x-tex tex
88Mime application/x-xpinstall xpi
89Mime application/zip zip
90Mime audio/amr amr
91Mime audio/midi mid midi kar rmi
92Mime audio/mpeg mp3
93Mime audio/x-mpegurl m3u pls
94Mime audio/x-ms-wma wma
95Mime audio/x-pn-realaudio ram rm rmm
96Mime audio/x-pn-realaudio-plugin rpm
97Mime audio/x-realaudio ra
98Mime audio/x-wav wav
99Mime image/bmp bmp
100Mime image/gif gif
101Mime image/jpeg jpg jpeg jpe
102Mime image/png png
103Mime image/psd psd
104Mime image/tiff tif tiff
105Mime image/vnd.djvu djvu djv
106Mime image/x-icon ico
107Mime text/css css
108Mime text/html;\ charset=windows-1251 html htm
109Mime text/plain;\ charset=windows-1251 txt
110Mime text/xml xml xsl
111Mime video/3gpp 3gp
112Mime video/mpeg mpeg mpg m2v
113Mime video/quicktime mov qt
114Mime video/x-flv flv
115Mime video/x-matroska mkv
116Mime video/x-ms-asf asf asx
117Mime video/x-ms-wmv wmv
118Mime video/x-msvideo avi divx
119
120
121
122Server *
123
124# some info about server status
125Alias /status STATUS
126
127
128# maximum perfomance: minimal content (43 bytes), not a file
129Alias /p.gif PIXEL
130
131# small static file (~200 bytes)
132Alias /small.txt /var/0W/docs/crontab$
133
134# medium static file (~27k)
135Alias /medium.txt /var/0W/docs/httpd.ru.txt$
136
137# cached medium static file (~27k)
138# configure 0W with --cache option, and uncomment next lines:
139# Alias /cached.txt /var/0W/docs/httpd.ru.txt$
140# Cached default
141
142
143# big file, put some file to /var/tmp/test.mp3
144Alias /test.mp3 /var/tmp/test.mp3
145
146
147# test backend connection, some other server must be on localhost:80
148Alias /backend localhost:80
149