Apache的多的DocumentRoot [英] Apache multiple DocumentRoot
本文介绍了Apache的多的DocumentRoot的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我怎么可以在阿帕奇以下安装?
How can I have the following setup in apache?
的http://服务器/ ABC / *
应送达 /无功/网络/ ABC / *
的http://服务器/ PQR / *
应送达 /无功/网络/ PQR / *
的每隔请求的应 /var/www/Others/index.php
送达(单个文件)。
Every other request should be served by /var/www/Others/index.php
(a single file).
谢谢,
JP
推荐答案
使用别名:
Alias /ABC/ /var/www/ABC/
Alias /PQR/ /var/www/PQR/
保留文档根目录指向/var/www/Others/index.php。它可以做的伎俩。 :)
Leave the document root pointing to /var/www/Others/index.php. It could do the trick. :)
这篇关于Apache的多的DocumentRoot的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文