apache本机环境配置虚拟访问域名
来源:互联网 发布:如何批量删除淘宝订单 编辑:程序博客网 时间:2024/05/16 00:58
1、打开%ApacheDir%/conf/httpd.conf,找到
# Virtual hosts
# Include conf/extra/httpd-vhosts.conf
把第二行前面的注释去掉,这样就可以通过修改httpd-vhosts.conf文件来达到配置虚拟主机的目的。
2、然后在httpd-vhosts.conf文件内容配置如下内容
<VirtualHost 127.0.0.1:802>
ServerAdmin webmaster@dummy-host.localhost
DocumentRoot "D:/OpenSource/wamp/www/"
ServerName localhost
ServerAlias www.dummy-host.localhost
ErrorLog "logs/dummy-host.localhost-error.log"
CustomLog "logs/dummy-host.localhost-access.log" common
</VirtualHost>
<VirtualHost 127.0.0.1:802>
ServerAdmin webmaster@dummy-host2.localhost
DocumentRoot "D:/OpenSource/wamp/www/"
ServerName www.gtlions.com
ServerAlias gtlions.com
ErrorLog "logs/dummy-gtlions.com-error.log"
CustomLog "logs/dummy-gtlions.com-access.log" common
</VirtualHost>
3、最后修改hosts文件,在c:/windows/system32/drivers/etc/下面,添上两条
127.0.0.1 www.gtlions.com
127.0.0.1 gtlions.com
-The End-
- apache本机环境配置虚拟访问域名
- apache本机环境配置虚拟访问域名
- 配置apache虚拟域名
- Apache 虚拟域名配置
- apache配置虚拟域名
- apache配置虚拟域名
- Apache配置虚拟域名
- 配置apache虚拟域名
- Apache配置虚拟域名
- Apache配置虚拟域名
- apache 配置了虚拟域名访问受限问题
- PHP本地实现虚拟域名访问:Apache虚拟主机配置
- PHP 配置apache端口以及虚拟域名访问
- Apache配置虚拟域名后localhost无法正常访问
- apache rewrite重写配置和本机域名配置,访问权限设置,伪静态实际应用
- apache 设置IP访问、配置apache虚拟域名、Apache 配置二级域名、php 配置 curl
- [亲测]Apache配置虚拟域名
- Apache下配置虚拟域名
- 李开复给大学生的六封信
- [学习标准库]IO命令--stdio.h
- Struts -- html:link 标签的使用
- MJ对601006(大秦铁路)的分析
- 项目失败的原因总结
- apache本机环境配置虚拟访问域名
- oracle 字符按位或函数
- dos安装windows7方法
- ReportEvent
- 颜色索引画小球
- Link2001错误修正草案
- .h 与 .hpp 文件
- 4月10日,多谢了
- (转)H.264 RTP payload 格式