apache 搭建PHP多站点
修改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>
一只站在树上的鸟儿,从来不会害怕树枝会断裂,因为它相信的不是树枝,而是它自己的翅膀。与其每天担心未来,不如努力做好现在。