apache 配置多域名访问的方法

C:\phpStudy\PHPTutorial\Apache\conf   里面的   vhosts.conf 配置多域名访问

<VirtualHost *:80>
DocumentRoot "C:/phpStudy/PHPTutorial/WWW/ams/public/"
ServerName ams

ErrorLog "logs/www.learn-laravel.com-error.log"
CustomLog "logs/www.learn-laravel.com-access.log" combined
</VirtualHost>


<VirtualHost *:80>
DocumentRoot "C:/phpStudy/PHPTutorial/WWW/"
ServerName www.*******.cn

ErrorLog "logs/www.learn-laravel.com-error.log"
CustomLog "logs/www.learn-laravel.com-access.log" combined
</VirtualHost>

posted @ 2019-10-14 14:37  多啦C梦  阅读(896)  评论(0编辑  收藏  举报