+ -
当前位置:首页 → 问答吧 → !新手求教,apache配置文件httpd.conf中,virtualhost是干什么用的?

!新手求教,apache配置文件httpd.conf中,virtualhost是干什么用的?

时间:2007-03-05

来源:互联网

如题,各个参数又代表什么?

作者: zghmminwx   发布时间: 2007-03-05

# <VirtualHost   *:80>
#         ServerAdmin   [email protected]
#         DocumentRoot   /www/docs/dummy-host.example.com
#         ServerName   dummy-host.example.com
#         ErrorLog   logs/dummy-host.example.com-error_log
#         CustomLog   logs/dummy-host.example.com-access_log   common
# </VirtualHost>


virtualHost   是建立虚拟主机的,就是一个服务器建立多个网站,针对不同的域名。
ServerAdmin   是邮箱
DocumentRoot   是你的虚拟主机的根目录
ServerName   是域名
ErrorLog   是你的虚拟主机的错误日志
CustomLog   是你的虚拟主机的日志

作者: yunfeifan   发布时间: 2007-03-06

VirtualHost

作者: greatwqs   发布时间: 2010-10-27