`
Poechant
  • 浏览: 213795 次
博客专栏
Bebe66e7-3a30-3fc9-aeea-cfa3b474b591
Nginx高性能Web服务...
浏览量:23576
5738817b-23a1-3a32-86de-632d7da73b1e
Cumulus实时媒体服务...
浏览量:21477
社区版块
存档分类
最新评论

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

 
阅读更多

在已经成功设置一个站点后,如果我们想再建设一个站点怎么办?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>

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics