返回首页
当前位置: 主页 > 网络编程 > Php实例教程 >

XAMPP1.6.8的 config文件示例代码

时间:2011-03-24 14:00来源:知行网www.zhixing123.cn 编辑:麦田守望者

ThreadsPerChild 250
MaxRequestsPerChild 0
ServerRoot "D:/xampp/apache"
Listen 80
Listen 3000
Listen 4000
Listen 5000

LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.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 cgi_module modules/mod_cgi.so
LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule include_module modules/mod_include.so
LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule ldap_module modules/mod_ldap.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
LoadModule status_module modules/mod_status.so
LoadModule ssl_module modules/mod_ssl.so
LoadModule autoindex_color_module modules/mod_autoindex_color.so
ServerAdmin admin@localhost
ServerName localhost:80
DocumentRoot "D:/xampp/htdocs/"
#以下是根目录的许可
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
#以下是D:/xampp/htdocs的许可
<Directory "D:/xampp/htdocs">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
#以下是d:\xampp\htdocs\www_py的许可
<Directory "D:/xampp/htdocs/www_py">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>

#以下是d:\xampp\htdocs\www_zw的许可
<Directory "D:/xampp/htdocs/www_zw">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
#以下是d:\xampp\htdocs\www_jin的许可
<Directory "D:/xampp/htdocs/www_jin">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
#配置其它端口访问路径
NameVirtualHost localhost:3000
<VirtualHost localhost:3000>
## ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "D:/xampp/htdocs/www_py"
ServerName localhost:3000
## ErrorLog logs/dummy-host.example.com-error_log
## CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
#配置4000端口访问路径
NameVirtualHost localhost:4000
<VirtualHost localhost:4000>
## ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "D:/xampp/htdocs/www_zw"
ServerName localhost:4000
## ErrorLog logs/dummy-host.example.com-error_log
## CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
#配置5000端口访问路径
NameVirtualHost localhost:5000
<VirtualHost localhost:5000>
## ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "D:/xampp/htdocs/www_jin"
ServerName localhost:5000
## ErrorLog logs/dummy-host.example.com-error_log
## CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>

<IfModule dir_module>
DirectoryIndex index.php index.php4 index.php3 index.cgi index.pl index.html index.htm index.shtml index.phtml
</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:/xampp/cgi-bin/"
</IfModule>
<Directory "D:/xampp/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
AddHandler cgi-script .cgi
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
</IfModule>
EnableMMAP off
EnableSendfile off
Include conf/extra/httpd-xampp.conf
Include conf/extra/httpd-multilang-errordoc.conf
Include conf/extra/httpd-autoindex.conf
Include conf/extra/httpd-languages.conf
Include conf/extra/httpd-userdir.conf
Include conf/extra/httpd-info.conf
Include conf/extra/httpd-vhosts.conf
Include conf/extra/httpd-manual.conf
Include conf/extra/httpd-dav.conf
Include conf/extra/httpd-default.conf
Include conf/extra/httpd-ssl.conf
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>

------分隔线----------------------------
标签(Tag):config
------分隔线----------------------------
推荐内容
猜你感兴趣