声明:本站文章均为作者个人原创,图片均为实际截图。如有需要请收藏网站,禁止转载,谢谢配合!!!

WampServer是一款由法国人开发的Apache Web服务器、PHP解释器以及MySQL数据库的整合软件包。免去了开发人员将时间花费在繁琐的配置环境过程,从而腾出更多精力去做开发。WampServer就是Windows Apache Mysql PHP集成安装环境

1、C:\Windows\System32\drivers\etc\hosts 文件添加127.0.0.1 www.myworld.com 保存文件

2、D;\wamp\bin\apache\apache2.2.8\conf\httpd.conf 里面的#Include conf/extra/httpd-vhosts.conf 去掉# 保存

3、D:\wamp\bin\apache\apache2.2.8\conf\extra\httpd-vhosts.conf 添加我们本地项目域名实际位置

添加如下:

<VirtualHost *:80>
  ServerName localhost666.com
  ServerAlias localhost666.com
  DocumentRoot "${INSTALL_DIR}/www/a"
  <Directory "${INSTALL_DIR}/www/a">
    Options +Indexes +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
  </Directory>
</VirtualHost>