怎么将APACHE当中的一个虚拟主机重写成另一个虚拟主机的子目录

如何将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应该怎么配置?

?

怎么将APACHE当中的一个虚拟主机重写成另一个虚拟主机的子目录

相关文章:

你感兴趣的文章:

标签云: