/**
*
* @email 514320008@qq.com
* @author jshaibozhong
*
*/

1,打开APACHE的目录  \Apache2\conf\extra\httpd-vhosts.conf

2,在文件最后加入如下代码

<VirtualHost *:80>
 DocumentRoot E:\projects\AD
 ServerName www.ad.com
 ServerAlias www.ad.com
</VirtualHost>

3,打开hosts 文件

C:\Windows\System32\drivers\etc\hosts

配置以下域名

127.0.0.2    www.ad.com

4,在浏览器中即可你用所配置的域名www.ad.com来访问你的项目。

相关文章:

  • 2021-11-15
  • 2021-12-03
  • 2021-11-01
  • 2021-12-27
  • 2022-12-23
  • 2021-11-30
  • 2021-10-05
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-27
  • 2021-12-19
  • 2021-07-11
  • 2021-09-19
  • 2021-12-10
相关资源
相似解决方案