# # 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. # # Use name-based virtual hosting. # # # 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. # # 你只需要配置以下代码, 即可开启一段host主机. # 不同端口可直接多创建几个VirtualHost, 无特殊需求, 请保持 *:Port 这种结构 # # ServerAdmin postmaster@dummy-host.localhost # DocumentRoot "D:/Qampp/htdocs/xx/" # ServerName Domain.com # ServerAlias www.Domain.com # ErrorLog "logs/Domain-error.log" # CustomLog "logs/Domain-access.log" combined #