apache绑定多个域名
## ServerName gives the name and port that the server uses to>
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn
't have a registered DNS name, enter its IP address here.
#
<VirtualHost *:80>
# This first-listed virtual host is also the default for *:80
ServerName www.btsha.com
ServerAlias btsha.com
DocumentRoot "/var/www/html"
</VirtualHost>
<VirtualHost *:80>
ServerName www.piger.cc
ServerAlias piger.cc
DocumentRoot "/var/www/h2"
</VirtualHost>
页:
[1]