分三步:

一,开启虚拟域名设置,在路径中找到(apache\apache2.4.9\conf)httpd.conf 配置文件,

去掉 " Include conf/extra/httpd-vhosts.conf "  前面的" # " # Virtual hosts Includeconf/extra/httpd-vhosts.conf

二,关联本地目录,在路径找到(apache\apache2.4.9\conf\extra)httpd-vhosts.conf 配置文件

<VirtualHost *:80>
ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot "D:\wamp\www\newkir"
ServerName web.kir.com
ErrorLog "logs/dummy-host2.example.com-error.log"
CustomLog "logs/dummy-host2.example.com-access.log" common
</VirtualHost>

<VirtualHost *:80>
ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot "D:\wamp\www"
ServerName localhost
ErrorLog "logs/dummy-host2.example.com-error.log"
CustomLog "logs/dummy-host2.example.com-access.log" common
</VirtualHost>

三,关联本地域名解析,在路径找到(C:\Windows\System32\drivers\etc)hosts 配置文件,添加如下虚拟域名

127.0.0.1 localhost
127.0.0.1 web.kir.com

最新文章

  1. asp.net dataTable转换成Json格式
  2. 【emWin】例程四:显示文本
  3. PLSQL怎样导出oracle表结构和数据
  4. 深度分析Linux下双网卡绑定七种模式
  5. 一个简单顺序表的C++实现
  6. nginx源码分析——event模块
  7. 微信小程序开发流程
  8. MyBatis之TypeHandler
  9. 前端MVC Vue2学习总结(二)——Vue的实例、生命周期与Vue脚手架(vue-cli)
  10. Android 利用WebViewJavascriptBridge 实现js和java的交互(一)
  11. android 自定义相机
  12. java添加菜单项目
  13. 一: WCF的服务端与客户端在通信时有三种模式:请求响应模式、数据报模式和双工通讯模式。
  14. cython 成功创建import 模块
  15. Github API
  16. Web服务器的反向代理nginx
  17. 百练8216-分段函数-2016正式A题
  18. hdu5173 How Many Maos Does the Guanxi Worth
  19. 【Unix网络编程】chapter6IO复用
  20. RDD转换DataFrame

热门文章

  1. web.xml配置编码过滤器解决中文乱码问题
  2. poj 2135 Farm Tour 【无向图最小费用最大流】
  3. Reset and Clear Recent Items and Frequent Places in Windows 10
  4. mysql 登录与权限
  5. putty和xshell使用和免密登录
  6. Android中图片旋转
  7. VS 在代码中括号总是跟着类型后面
  8. MySQL 5.6 Reference Manual-14.1 Introduction to InnoDB
  9. JDK1.7源码阅读tools包之------ArrayList,LinkedList,HashMap,TreeMap
  10. (转)ORA-01502