torlee 发表于 2017-1-8 11:09:26

利用Apache的VirtualHost在本地搭建多个站点

  在已经成功设置一个站点后,如果我们想再建设一个站点怎么办?Apache的VirtualHost可以帮助你。
  Apache 要在本地设置第二个站点,则可以通过VirtualHost实现,具体如下:

<VirtualHost 127.0.0.2:80>DocumentRoot E:/ide/eclipse-php/testServerName 127.0.0.2:80</VirtualHost><Directory "E:/ide/eclipse-php/test">Options Indexes FollowSymLinks MultiviewsAllowOverride AllOrder Allow,DenyAllow from all</Directory>
页: [1]
查看完整版本: 利用Apache的VirtualHost在本地搭建多个站点