浏览 304 次
|
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
|---|---|
| 作者 | 正文 |
|
最后更新时间:2008-01-25 关键字: apache
如何将APACHE当中的一个虚拟主机重写成另一个虚拟主机的子目录
例如 有虚拟主机A <VirtualHost *:80> ServerName www.aaa.com ProxyIOBufferSize 8192 ProxyRequests Off ProxyVia Full ProxyPass / ajp://www.aaa.com:8009/ smax=5 max=20 ttl=120 retry=300 DirectoryIndex index.jsp index.htm index.html index.do index.actoin ErrorLog logs/www.aaa.com-error_log CustomLog logs/www.aaa.com_log common </VirtualHost> 有虚拟主机B: <VirtualHost *:80> ServerName www.bbb.com DocumentRoot E:/webapps/bbb DirectoryIndex index.htm index.html ErrorLog logs/www.bbb.com-error_log CustomLog logs/www.bbb.com_log common </VirtualHost> 现在想在虚拟主机A中进行配置,把虚拟主机B Rewrite成虚拟主机A的一个目录, 例如访问http://www.aaa.com/b/index.html时,就是访问http://www.bbb.com/index.html, 并且URL不会变化还是http://www.aaa.com/b/index.html 请问APACHE应该怎么配置?
声明:JavaEye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
|
|
| 返回顶楼 | |


