ThreadsPerChild 250
MaxRequestsPerChild 0
ServerRoot "D:/Apache2.2"
Listen 80
#include loadmodule
######模块加载文件
Include d:/Apache2.2/conf/loadmodule/loadmodule.conf
<IfModule dir_module>
DirectoryIndex index.php
</IfModule>
##############################
##############################
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
</FilesMatch>
ErrorLog logs/error.log
LogLevel warn
<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
<IfModule logio_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
CustomLog logs/access.log common
</IfModule>
<IfModule alias_module>
ScriptAlias /cgi-bin/ "D:/Apache2.2/cgi-bin/"
</IfModule>
<Directory "D:/Apache2.2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
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>
# For PHP 5 do something like this:
LoadModule php5_module "D:/php5/php5apache2_2.dll"
AddType application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "D:/php5"
LoadFile d:/php5/php5ts.dll
LoadFile d:/php5/libmysql.dll
LoadFile d:/php5/ntwdblib.dll
NameVirtualHost *:80
#include vhost
######虚拟主机加载文件
Include d:/Apache2.2/conf/vhost/[^.#]*
##########################
|