ddxiami

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 2050|回复: 0

[调试] apache配置vhosts

[复制链接]
发表于 2014-11-5 11:49:26 | 显示全部楼层 |阅读模式
在httpd.conf加入以下配置

NameVirtualHost *
<VirtualHost *:80>
DocumentRoot "D:\wamp\www\hr"
ServerName hr.ddxiami.com
ServerAlias hr.ddxiami.com
ErrorLog "logs/hr-error.log"
CustomLog "logs/hr-access.log" common
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "D:\wamp\www\hr2"
ServerName hr2.ddxiami.com
ServerAlias hr2.ddxiami.com
ErrorLog "logs/hr2-error.log"
CustomLog "logs/hr2-access.log" common
</VirtualHost>

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|技术文档库 ( 闽ICP备15017263号-2 )|网站地图

GMT+8, 2025-5-19 01:07 , Processed in 0.034467 second(s), 16 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表