Apach配置本地域名
分三步:
一,开启虚拟域名设置,在路径中找到(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
最新文章
- asp.net dataTable转换成Json格式
- 【emWin】例程四:显示文本
- PLSQL怎样导出oracle表结构和数据
- 深度分析Linux下双网卡绑定七种模式
- 一个简单顺序表的C++实现
- nginx源码分析——event模块
- 微信小程序开发流程
- MyBatis之TypeHandler
- 前端MVC Vue2学习总结(二)——Vue的实例、生命周期与Vue脚手架(vue-cli)
- Android 利用WebViewJavascriptBridge 实现js和java的交互(一)
- android 自定义相机
- java添加菜单项目
- 一: WCF的服务端与客户端在通信时有三种模式:请求响应模式、数据报模式和双工通讯模式。
- cython 成功创建import 模块
- Github API
- Web服务器的反向代理nginx
- 百练8216-分段函数-2016正式A题
- hdu5173 How Many Maos Does the Guanxi Worth
- 【Unix网络编程】chapter6IO复用
- RDD转换DataFrame
热门文章
- web.xml配置编码过滤器解决中文乱码问题
- poj 2135 Farm Tour 【无向图最小费用最大流】
- Reset and Clear Recent Items and Frequent Places in Windows 10
- mysql 登录与权限
- putty和xshell使用和免密登录
- Android中图片旋转
- VS 在代码中括号总是跟着类型后面
- MySQL 5.6 Reference Manual-14.1 Introduction to InnoDB
- JDK1.7源码阅读tools包之------ArrayList,LinkedList,HashMap,TreeMap
- (转)ORA-01502