Home > php教程 > php手册 > window下配置Apache虚拟主机 - xingzhukang

window下配置Apache虚拟主机 - xingzhukang

WBOY
Release: 2016-05-20 11:39:30
Original
1392 people have browsed it

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虚拟主机 - xingzhukang

source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template