apache一个IP一个端口对应多个域名

一个IP一个端口对应多个域名:

NameVirtualHost XXX.XXX.XXX.XXX:80
<VirtualHost XXX.XXX.XXX.XXX:80>
    ServerAdmin www.aaa.com
    ServerPath "/aaa"
    DocumentRoot "/var/www/aaa"
    ServerName www.aaa.com
    ServerAlias www.aaa.com
</VirtualHost>

<VirtualHost XXX.XXX.XXX.XXX:80>
    ServerAdmin dba.aaa.com
    ServerPath "/phpMyAdmin"
    DocumentRoot "/var/www/phpMyAdmin"
    ServerName dba.aaa.com
    ServerAlias dba.aaa.com
</VirtualHost>

  

posted @ 2014-11-18 17:24  贱书生  阅读(800)  评论(0编辑  收藏  举报