Home > php教程 > php手册 > body text

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

WBOY
Release: 2016-06-13 08:41:24
Original
1560 people have browsed it

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

打开后添加一段代码 如下

可以无限添加域名配置完后重启Apache

之后直接访问域名就行

例:

 

Related labels:
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!