在已经成功设置一个站点后,如果我们想再建设一个站点怎么办?Apache的VirtualHost可以帮助你。
Apache 要在本地设置第二个站点,则可以通过VirtualHost实现,具体如下:
<VirtualHost 127.0.0.2:80> DocumentRoot E:/ide/eclipse-php/test ServerName 127.0.0.2:80 </VirtualHost> <Directory "E:/ide/eclipse-php/test"> Options Indexes FollowSymLinks Multiviews AllowOverride All Order Allow,Deny Allow from all </Directory>