Home  >  Article  >  Backend Development  >  window下配置Apache虚拟主机,apache虚拟主机_PHP教程

window下配置Apache虚拟主机,apache虚拟主机_PHP教程

WBOY
WBOYOriginal
2016-07-12 08:53:58777browse

window下配置Apache虚拟主机,apache虚拟主机

1.首先需要安装Apache服务,这里就不介绍怎么安装了。

 

2.首先配置window虚拟域名 打开hosts

 路径为C:\Windows\System32\drivers\etc

打开后在里边写上域名 如 www.cms.com

如图:

3.修改Apache配置文件 httpd.conf

找到

把注释去掉

 

修改

为开启状态

4.修改Apache下httpd-vhosts.conf

例路径为:D:\wamp\bin\apache\apache2.4.9\conf\extra

打开后添加一段代码 如下

window下配置Apache虚拟主机,apache虚拟主机_PHP教程

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn