httpd-vhost

#
# 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
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

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

#
# 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 <VirtualHost> block.
#

ProxyRequests On
ProxyVia On

<Proxy *>
Order deny,allow
Allow from all
</Proxy>

<VirtualHost *:80>
DocumentRoot "/Users/enson/Dev/"
ServerName w.waptest.taobao.com
ErrorLog "/private/var/log/apache2/sites.com-error_log"
CustomLog "/private/var/log/apache2/sites.com-access_log" common

<Directory /Users/enson/Dev/>
Options All
Allow from All
AllowOverride All
</Directory>
</VirtualHost>

# <VirtualHost *:8080>
# ServerAdmin webmaster@dummy-host2.example.com
# DocumentRoot "/usr/docs/dummy-host2.example.com"
# ServerName dummy-host2.example.com
# ErrorLog "/private/var/log/apache2/dummy-host2.example.com-error_log"
# CustomLog "/private/var/log/apache2/dummy-host2.example.com-access_log" common
# </VirtualHost>

 

posted @ 2015-11-09 20:12  flyromance  阅读(223)  评论(0)    收藏  举报