您的位置:首页 > 运维架构 > Apache

apache 搭建PHP多站点

2015-04-20 22:20 351 查看
修改apache 配置文件:httpd.conf

1、默认 Listen 80端口

2、添加配置如下:

<VirtualHost *:80>
ServerAdmin admin@yii.com
ServerName yii.com
ServerAlias www.yii.com
DocumentRoot "E:/Soft/PHP/Project"
DirectoryIndex index.html index.php
<Directory "E:/Soft/PHP/Project">
Options  Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: