win7 php 配置多个网站
2015-10-26 16:15
513 查看
1、在C:\WINDOWS\system32\drivers\etc目录下,打开Hosts
添加A站和B站的DNS映射,如
127.0.0.1 local.zhengxin.com
127.0.0.1 local.zhengxinnew.com
2、httpd.conf文件
添加A站和B站的DNS映射,如
127.0.0.1 local.zhengxin.com
127.0.0.1 local.zhengxinnew.com
2、httpd.conf文件
<VirtualHost *:80> <Directory "D:/Apache+PHP/Apache24/htdocs/zhengxin"> Options -Indexes +includes Allow from all AllowOverride All </Directory> ServerAdmin admin@localphp.com DocumentRoot "D:/Apache+PHP/Apache24/htdocs/zhengxin" ServerName local.zhengxin.com #ServerAlias *.localphp.com ErrorLog logs/zhengxin.com-error_log </VirtualHost> <VirtualHost *:80> <Directory "D:/Apache+PHP/Apache24/htdocs/zhengxinnew"> Options -Indexes +includes Allow from all AllowOverride All </Directory> ServerAdmin admin@localphp.com DocumentRoot "D:/Apache+PHP/Apache24/htdocs/zhengxinnew" ServerName local.zhengxinnew.com #ServerAlias *.localphp.com ErrorLog logs/zhengxinnew.com-error_log </VirtualHost>
相关文章推荐
- Android开发之旅:android架构
- Android Camera 系统架构源码分析(1)---->Camera的初始化
- Web API应用架构在Winform混合框架中的应用(4)--利用代码生成工具快速开发整套应用
- 找个些有用的网站(CSS生成)
- 论架构师的自我修养
- 论架构师的自我修养
- HADOOP(2.4)+HBASE(0.98.1)高可用集群详细部署
- 架构师八荣八耻
- 推荐一个比较便宜的买数字证书的网站
- dubbo架构详解
- 浅谈mysql主从复制的高可用解决方案
- web应用的负载均衡、集群、高可用(HA)解决方案
- 关于网站性能优化准则
- Uber从单体架构转向微服务架构
- Web网站的性能测试工具
- Hadoop生态专辑 —— 总体架构目录
- 58同城技术委员会执行主席沈剑:好的架构是进化来的,不是设计来的
- 58同城技术委员会执行主席沈剑:好的架构是进化来的,不是设计来的
- [架构师]论架构师的自我修养
- 基于消息的软件架构