修改apache 配置文件:httpd.conf
1、默认 Listen 80端口
2、添加配置如下:
<VirtualHost *:80> ServerAdmin [email protected] 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>
时间: 2024-10-17 07:46:23