window下配置Apache虚拟主机 apache linux apache虚拟主机 mac apache 虚拟主机

WBOY
Release: 2016-07-29 08:52:34
Original
1291 people have browsed it

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

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

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

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

如图:

apache虚拟主机配置,apache虚拟主机作用,虚拟主机,apache 下载,apache虚拟主机是什么,apache虚拟目录,apache,linux apache虚拟主机,mac apache 虚拟主机

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

找到apache虚拟主机配置,apache虚拟主机作用,虚拟主机,apache 下载,apache虚拟主机是什么,apache虚拟目录,apache,linux apache虚拟主机,mac apache 虚拟主机

把注释去掉apache虚拟主机配置,apache虚拟主机作用,虚拟主机,apache 下载,apache虚拟主机是什么,apache虚拟目录,apache,linux apache虚拟主机,mac apache 虚拟主机

修改 apache虚拟主机配置,apache虚拟主机作用,虚拟主机,apache 下载,apache虚拟主机是什么,apache虚拟目录,apache,linux apache虚拟主机,mac apache 虚拟主机

为开启状态apache虚拟主机配置,apache虚拟主机作用,虚拟主机,apache 下载,apache虚拟主机是什么,apache虚拟目录,apache,linux apache虚拟主机,mac apache 虚拟主机

4.修改Apache下httpd-vhosts.conf

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

打开后添加一段代码 如下

window下配置Apache虚拟主机 apache linux apache虚拟主机 mac 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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template