+ -
当前位置:首页 → 问答吧 → 怎么用apache建多个网站啊

怎么用apache建多个网站啊

时间:2010-06-27

来源:互联网

能不能用apache建多个网站啊,可以像IIS一样,用主机头
有没有什么办法啊

作者: pbw15   发布时间: 2010-06-27

当然有办法.. 看手册 VirtualHost 章节...

作者: mrshelly   发布时间: 2010-06-30

引用 1 楼 mrshelly 的回复:
当然有办法.. 看手册 VirtualHost 章节...

学习了。

作者: krayli   发布时间: 2010-07-02

Listen 127.0.0.1:8080
Listen 127.0.0.1:8081

<VirtualHost 127.0.0.1:8080>
DocumentRoot E:/0
<Directory E:/0>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
  </Directory>
</VirtualHost> 

<VirtualHost 127.0.0.1:8081>
DocumentRoot E:/1
<Directory E:/1>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
  </Directory>
</VirtualHost>

作者: spcmusic   发布时间: 2010-07-06

主机头 来了

  <VirtualHost *>
  ServerName www.domain.tld
  DocumentRoot /www/domain
  </VirtualHost>

  <VirtualHost *>
  ServerName www.otherdomain.tld
  DocumentRoot /www/otherdomain
  </VirtualHost>

作者: dcomman   发布时间: 2010-07-20

热门下载

更多