конфиг апача:
Include /apache/include/httpd-info.conf
Include /apache/include/virtual.conf
Include /apache/include/mod_rpaf.conf
#Include /apache/conf/include/mod_security.conf
#ServerSignature Off
ServerTokens Prod
#Timeout 1800
Timeout 18
MaxClients 85
StartServers 10
MaxSpareServers 32
MinSpareServers 8
MaxRequestsPerChild 20
##SendBufferSize 2048
#MaxKeepAliveRequests 128
#MaxRequestsPerChild 128
#KeepAliveTimeout 2
<IfModule worker.c>
ServerLimit 900
/apache/apache20/conf/httpd.conf: 214 строк, 4786 символов.
topnews# apachectl -k restart
topnews# vi /apache/apache20/conf/httpd.conf
topnews# cat /apache/apache20/conf/httpd.conf
Include /apache/include/httpd-info.conf
Include /apache/include/virtual.conf
Include /apache/include/mod_rpaf.conf
Include /apache/conf/include/mod_evasive20.conf
Include /apache/conf/include/mod_security.conf
ServerSignature Off
ServerTokens Prod
#Timeout 1800
Timeout 18
MaxClients 85
StartServers 10
MaxSpareServers 32
MinSpareServers 8
MaxRequestsPerChild 20
##SendBufferSize 2048
#MaxKeepAliveRequests 128
#MaxRequestsPerChild 128
#KeepAliveTimeout 2
<IfModule worker.c>
ServerLimit 900
StartServers 10
MaxClients 50
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 32
MaxRequestsPerChild 100
</IfModule>
<IfModule perchild.c>
NumServers 10
StartThreads 20
MinSpareThreads 20
MaxSpareThreads 40
MaxThreadsPerChild 50
MaxRequestsPerChild 50
</IfModule>
HostnameLookups off
RewriteEngine On
AddType application/x-httpd-php .php
AddHandler cgi-script .cgi .pl
#LimitRequestBody 0
TraceEnable off
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]
LoadModule php4_module modules/libphp4.so
LoadModule security_module modules/mod_security.so
LoadModule rpaf_module modules/mod_rpaf-2.0.so
ServerRoot "/apache/apache20"
<IfModule !mpm_netware.c>
<IfModule !perchild.c>
ScoreBoardFile logs/apache_runtime_status
</IfModule>
</IfModule>
<IfModule !mpm_netware.c>
PidFile logs/httpd.pid
</IfModule>
KeepAlive Off
#<IfModule worker.c>
#StartServers 2
#MaxClients 150
#MinSpareThreads 25
#MaxSpareThreads 75
#ThreadsPerChild 25
#MaxRequestsPerChild 0
#</IfModule>
Listen 80
<IfModule !mpm_winnt.c>
<IfModule !mpm_netware.c>
User www
Group www
</IfModule>
</IfModule>
ServerAdmin noc@ia.ru
UseCanonicalName Off
DocumentRoot "/apache/htdocs"
<Directory />
Options FollowSymLinks
AllowOverride all
</Directory>
DirectoryIndex index.php index.htm index.html
AccessFileName .htaccess
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
</FilesMatch>
TypesConfig conf/mime.types
DefaultType text/plain
<IfModule mod_mime_magic.c>
MIMEMagicFile conf/magic
</IfModule>
EnableMMAP On
EnableSendfile On
ErrorLog logs/error_log
LogLevel info
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog logs/access_log combined
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" flog
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
DefaultIcon /icons/unknown.gif
AddDescription "GZIP compressed document" .gz
AddDescription "tar archive" .tar
AddDescription "GZIP compressed tar archive" .tgz
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
AddLanguage en .en
AddLanguage ru .ru
LanguagePriority ru en
ForceLanguagePriority Prefer Fallback
#AddCharset ISO-8859-5 .iso8859-5 .latin5 .cyr .iso-ru
AddCharset WINDOWS-1251 .cp-1251 .win-1251
AddType application/x-tar .tgz
AddEncoding x-compress .Z
AddEncoding x-gzip .gz .tgz
AddType application/x-gzip .gz .tgz
AddHandler cgi-script .cgi
AddHandler type-map var
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully