/**
* PHP学习环境
* Win32 + PHP5.3.10 + Apache2.2.21 + Mysql5.5.20
*/
一、Apache httpd.conf 详解与多站点配置:
1.Apache httpd.conf 详解
1)Listen 80 :监听端口
2)LoadModule php5_module "g:/wamp/bin/php/php5.3.10/php5apache2_2.dll" :载入PHP模块
3)ServerAdmin admin@localhost :安装时添加的邮件地址
4)DocumentRoot "g:/wamp/www/" :文档更目录
5)
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "g:/wamp/www/">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *ex

本文详细介绍了Apache httpd.conf文件的主要配置选项,包括监听端口、PHP模块加载、文档根目录、权限设置、错误日志、错误提示以及多站点配置。在多站点配置中,通过VirtualHost指令创建了两个不同域名指向不同文档根目录的站点,分别是127.0.0.2指向g:/wamp/www/aa和127.0.0.3指向g:/wamp/www/bb。
最低0.47元/天 解锁文章
1218

被折叠的 条评论
为什么被折叠?



