vhost配置多域名单ip访问

#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at 
# 
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

Listen 80
#Listen 8081

#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
#NameVirtualHost *:8081

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any  block.
#

    ServerAdmin test@qq.com
    DocumentRoot "D:\wamp\www\oauth\auth.service.com"
    ServerName auth.service.com
    ServerAlias www.service.com
    ErrorLog "logs/auth.service.com-error.log"
    CustomLog "logs/auth.service.com-access.log" common



    ServerAdmin test@qq.com
    DocumentRoot "D:\wamp\www\oauth\www.demo.com"
    ServerName www.demo.com
    ServerAlias www.demo.com
    ErrorLog "logs/www.demo.com-error.log"
    CustomLog "logs/www.demo.com-access.log" common



此条目发表在 apache, webserver 分类目录。将固定链接加入收藏夹。

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*


*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>