### Section 3: Virtual Hosts
#
# VirtualHost: 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.
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#
# ServerAdmin webmaster@dummy-host.example.com
# 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
#
AllowOverride All
# Allow open access:
Require all granted
AllowOverride All
# Allow open access:
Require all granted
#测试地址
DocumentRoot /var/www/html/chaodang/web/backend/web
ServerName cdadmin.gmgok.com
DocumentRoot /var/www/html/chaodang/web/upload
ServerName cdupload.gmgok.com
#测试地址
DocumentRoot /var/www/html/chaodang/web/api/web
ServerName cdapi.gmgok.com
####################################################################################
############汽车保养
####################################################################################
#测试地址
DocumentRoot /var/www/html/car/backend/web
ServerName tmp.admin.gmgok.com
DocumentRoot /var/www/html/car/frontend/web
ServerName tmp.home.gmgok.com
DocumentRoot /var/www/html/car/upload
ServerName tmp.upload.gmgok.com