# $Id: httpd.conf,v 1.6 2006/11/18 15:02:59 maxim Exp $ # # Example of configuration for simple benchmarking # See comments below. # # Tiny pseudo-file: # ab -n 10000 -c 200 http://test:8001/p.gif # # Small file: # ab -n 10000 -c 200 http://test:8001/small.txt # # Medium file: # ab -n 5000 -c 200 http://test:8001/medium.txt # # Cached medium file: # ab -n 5000 -c 200 http://test:8001/cached.txt # # Big file: # ab -n 200 -c 50 http://test:8001/test.mp3 # # Backend test: # ab -n 200 -c 50 http://test:8001/backend/ Listen 8001 # Connections 1000 # ProxyConnections 100 # ConnectionsPerIP 50 # Timeout 60 # KeepAliveTimeout 15 # KeepAlive on # MaxBuffer 128k # MaxPostSize 256k # Log on # SkipWWW off # SkipPort on # Listing off # FilesCheck 30 # FilesKeep 10 # ServerTokens on # Admin webmaster@site.ru # do not write access log Log off Connections 5000 # Benchmarking is from one IP, so set high limit ConnectionsPerIP 50000 # Uncomment next lines for better performance on FreeBSD # while transfering big files: # SendBuffer 128k # LowWaterMark 120k # Define small cache. # configure 0W with --cache option, and uncomment next line: # Cache size=1M Index index.html index.htm Mime text/plain;\ charset=windows-1251 * Mime application/octet-stream vom vmw fsa gepm gpm iva 3pm Mime application/x-bittorrent torrent Mime application/x-java-archive jar Mime application/rtf rtf Mime application/msword doc Mime application/vnd.ms-powerpoint ppt Mime application/vnd.ms-excel xls Mime application/mshelp chm hlp Mime application/x-msi msi Mime application/x-dvi dvi Mime application/x-tex tex Mime application/pdf pdf Mime application/postscript eps ps Mime application/x-javascript js Mime application/rar rar Mime application/zip zip Mime application/x-7zip-compressed 7z Mime application/octet-stream gz tgz exe com class cab dpr iso img Mime application/x-shockwave-flash swf Mime audio/x-pn-realaudio ram rm rmm Mime audio/x-pn-realaudio-plugin rpm Mime audio/x-realaudio ra Mime audio/x-ms-wma wma Mime audio/x-wav wav Mime audio/x-mpegurl m3u pls Mime audio/amr amr Mime audio/mpeg mp3 Mime audio/midi mid midi kar rmi Mime video/quicktime mov qt Mime video/x-msvideo avi divx Mime video/x-ms-wmv wmv Mime video/x-ms-asf asf asx Mime video/mpeg mpeg mpg m2v Mime video/3gpp 3gp Mime video/x-flv flv Mime text/xml xml Mime text/css css Mime text/plain;\ charset=windows-1251 txt Mime text/html;\ charset=windows-1251 html htm Mime image/vnd.djvu djvu djv Mime image/psd psd Mime image/tiff tif tiff Mime image/x-icon ico Mime image/bmp bmp Mime image/png png Mime image/jpeg jpg jpeg jpe Mime image/gif gif Server * # some info about server status Alias /status STATUS # maximum perfomance: minimal content (43 bytes), not a file Alias /p.gif PIXEL # small static file (~200 bytes) Alias /small.txt /var/0W/docs/crontab$ # medium static file (~27k) Alias /medium.txt /var/0W/docs/httpd.ru.txt$ # cached medium static file (~27k) # configure 0W with --cache option, and uncomment next lines: # Alias /cached.txt /var/0W/docs/httpd.ru.txt$ # Cached default # big file, put some file to /var/tmp/test.mp3 Alias /test.mp3 /var/tmp/test.mp3 # test backend connection, some other server must be on localhost:80 Alias /backend localhost:80