- 论坛徽章:
- 0
|
httpd.conf配置如下:
==========
ThreadsPerChild 1920
MaxRequestsPerChild 20000
ServerRoot "D:/java/Apache2.2"
Listen 80
LoadModule actions_module modules/mod_actions.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule file_cache_module modules/mod_file_cache.so
LoadModule imagemap_module modules/mod_imagemap.so
LoadModule include_module modules/mod_include.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule setenvif_module modules/mod_setenvif.so
# --begin
LoadModule jk_module modules/mod_jk.so
JkWorkersFile conf/workersb.properties
JkLogFile logs/mod_jk.log
JkLogLevel info
JkMount /*.action loadbalancer
JkMount /*.do loadbalancer
JkMount /*.jsp loadbalancer
#--end
#--begin
ServerTokens Prod
ServerSignature Off
MaxKeepAliveRequests 200
Timeout 300
KeepAlive On
KeepAliveTimeout 10
#--end
Timeout 300
ServerSignature Off
HostnameLookups Off
ServerTokens Prod
UseCanonicalName Off
ServerAdmin test@test.com
ServerName :80
DocumentRoot "D:/java/Apache2.2/htdocs"
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Satisfy all
</Directory>
<Directory "D:/java/Apache2.2/htdocs">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
</FilesMatch>
ErrorLog logs/error.log
LogLevel info
<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%h %l %u %t %>s %b" sun
<IfModule logio_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
CustomLog logs/access.log sun
</IfModule>
DefaultType text/plain
<IfModule mime_module>
TypesConfig conf/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
</IfModule>
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
==============
配置就是上面这些,没有贴注释。
[ 本帖最后由 xsun17951 于 2007-7-25 20:14 编辑 ] |
|