wamp的多站点搭建非常的简单

1. 添加端口(可以省略)

首先你可以在 wamp 的 Tools 下的 Add a Listen port for Apache 处添加监听端口

WAMP多站点搭建

WAMP多站点搭建
这里添加一个8089端口
WAMP多站点搭建
WAMP多站点搭建

2.配置站点

在浏览器中进入 localhost 页面,点击下方 Tools 中的 Add a Virtual Host

WAMP多站点搭建

WAMP多站点搭建

进入如下页面,配置输入相应的信息

WAMP多站点搭建

WAMP多站点搭建
再点击右下方的 Start the creation of the VirtualHost (May take a while...) 确认
重启wamp

再次进入 localhost 可以看见右下方的 Your VirtualHost 中出现了新配置的站点,新站点已经可以使用

WAMP多站点搭建

WAMP多站点搭建

3.删除站点

在 localhost 页面中,点击下方 Tools 中的 Add a Virtual Host,如下所示删除站点
WAMP多站点搭建
WAMP多站点搭建

相关文章: