Tag Archives: VirtualHost

apache2做基于域名的虚拟主机

NameVirtualHost 127.0.0.1
<VirtualHost webstite>
        ServerName website1
        ServerAlias website2
        DocumentRoot /website
 </VirtualHost>
<VirtualHost website3>
        ServerName website3
        DocumentRoot /website3
</VirtualHost>