ServerTokens Prod 
ServerSignature Off
Timeout 45
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
SendBufferSize 640000

StartServers         2
ServerLimit			 30
MaxClients           3000
MinSpareThreads      75 
MaxSpareThreads      600 
ThreadsPerChild      100
MaxRequestsPerChild  10000

UseCanonicalName     Off
HostnameLookups      Off
AddDefaultCharset gb2312
AddType application/x-tar .tgz
AddType application/x-httpd-php .php

DocumentRoot "/home/admin/cai/htdocs"
CoreDumpDirectory "/home/admin/cai/logs"
ServerRoot "/home/admin/cai"
ServerAdmin qingqing@wohao.com
ServerName  www.wohao.net
PidFile /home/admin/cai/logs/httpd.pid
Listen 80
Listen 443

User admin 
Group admin

LoadModule authz_host_module /opt/wohao/install/httpd/modules/mod_authz_host.so
LoadModule deflate_module /opt/wohao/install/httpd/modules/mod_deflate.so
LoadModule log_config_module /opt/wohao/install/httpd/modules/mod_log_config.so
LoadModule mime_magic_module /opt/wohao/install/httpd/modules/mod_mime_magic.so
LoadModule setenvif_module /opt/wohao/install/httpd/modules/mod_setenvif.so
LoadModule mime_module /opt/wohao/install/httpd/modules/mod_mime.so
LoadModule dir_module /opt/wohao/install/httpd/modules/mod_dir.so
LoadModule alias_module /opt/wohao/install/httpd/modules/mod_alias.so
LoadModule rewrite_module /opt/wohao/install/httpd/modules/mod_rewrite.so
#LoadModule evasive20_module /opt/wohao/install/httpd/modules/mod_evasive20.so
LoadModule proxy_module /opt/wohao/install/httpd/modules/mod_proxy.so
LoadModule proxy_connect_module /opt/wohao/install/httpd/modules/mod_proxy_connect.so
LoadModule proxy_http_module /opt/wohao/install/httpd/modules/mod_proxy_http.so
#LoadModule ssl_module /opt/wohao/install/httpd/modules/mod_ssl.so
#LoadModule php4_module /opt/wohao/install/httpd/modules/libphp4.so
#LoadModule desc_module /opt/wohao/install/httpd/modules/mod_desc.so
LoadModule evasive20_module /opt/wohao/install/httpd/modules/mod_evasive20.so
LoadModule wohaoBeacon_module /opt/wohao/install/httpd/modules/mod_wohaoBeacon.so

<IfModule mod_wohaoBeacon.c>
EnablewohaoBeacon      on
wohaoBeaconAddType     /home/admin/cai/conf/wohaoBeacon.cfg
wohaoBeaconInitChannel /home/admin/cai/conf/wohaoChannel.cfg
</IfModule>

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 "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully

ErrorDocument 400 /home/error.html
ErrorDocument 403 /home/error.html
ErrorDocument 404 /home/error.html
ErrorDocument 405 /home/error.html
ErrorDocument 408 /home/error.html
ErrorDocument 410 /home/error.html
ErrorDocument 411 /home/error.html
ErrorDocument 412 /home/error.html
ErrorDocument 413 /home/error.html
ErrorDocument 414 /home/error.html
ErrorDocument 415 /home/error.html
ErrorDocument 500 /toolarge.html
ErrorDocument 501 /toolarge.html
ErrorDocument 502 /toolarge.html
ErrorDocument 503 /toolarge.html
ErrorDocument 506 /toolarge.html

<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>
<Directory "/home/admin/cai/htdocs/home/js/fckeditor">
	AddDefaultCharset off
</Directory>
DirectoryIndex /browse/index.htm index.html index.php
TypesConfig /etc/mime.types
DefaultType text/plain
<IfModule mod_mime_magic.c>
    MIMEMagicFile /opt/wohao/install/httpd/conf/magic
</IfModule>
<Location />
    SetOutputFilter DEFLATE
    SetEnvIfNoCase Request_URI ^/auction/checkcode$ no-gzip
</Location>

ErrorLog "|/opt/wohao/install/cronolog/sbin/cronolog /home/admin/cai/logs/cronolog/%Y/%m/%Y-%m-%d-error_log"
LogLevel warn
#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
#LogFormat "%h %l %u %t \"%m http://%v%U%q%5c" %>s %b \"%{Referer}i\" %B \"%{User-Agent}i\"" combined
#LogFormat "%h %l %u %t \"%m http://%V%U%q\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{tracknick}C\" \"%{allyes_chsess}C\"" combined
#LogFormat "%h %D %u %t \"%m http://%V%U%q\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
#LogFormat "%h %D %u %t \"%m http://%V%U%q\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %D %u %{%Y-%m-%d %H:%M:%S}t \"%m http://%V%U%q\" %>s %b \"%{Referer}i\" \"%{Cookie}i\" \"%{header}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog
SetEnvIf Request_URI "^/robots\.txt$" dontlog
SetEnvIf Request_URI "\.swf$" dontlog
SetEnvIf Request_URI "\.gif$" dontlog
SetEnvIf Request_URI "\.jpg$" dontlog
SetEnvIf Request_URI "\.ico$" dontlog
SetEnvIf Request_URI "\.jpeg$" dontlog
SetEnvIf Request_URI "\.bmp$" dontlog
SetEnvIf Request_URI "\.png$" dontlog
SetEnvIf Request_URI "\.js$" dontlog
SetEnvIf Request_URI "\.css$" dontlog
SetEnvIf Request_URI "\.wav$" dontlog
SetEnvIf Request_URI "\.swf$" dontlog
SetEnvIf Request_URI "home/css" dontlog
CustomLog "|/opt/wohao/install/cronolog/sbin/cronolog /home/admin/cai/logs/cronolog/%Y/%m/%Y-%m-%d-wohao-access_log" combined env=!dontlog


RewriteEngine on
RewriteLogLevel 0
RewriteRule ^/$ /browse/index.htm [L]

#Include "/home/admin/cai/conf/esi.conf"
Include "/home/admin/cai/conf/imgo_jk.conf"

NameVirtualHost *
#NameVirtualHost *:443
<VirtualHost *> 
    ServerName shouji.wohao.com
    DocumentRoot /home/admin/cai/htdocs


</VirtualHost>
<Location />
  SetOutputFilter DEFLATE
 # Order Deny,Allow
 # Deny from all
 # Allow from 121.0.31.120/29
 # Allow from 121.0.29.0/24
 # Allow from 10.0.0.0/24
 # Allow from 192.168.0.0/16
 # Allow from 172.0.0.0/8
 # Allow from 127.0.0.1
</Location>

