同nginx一样,apache解析目录不需要安装任何东西,在配置文件里加入解析规则即可。
解析规则:
<IfModule mod_proxy.c>
ProxyPreserveHost On
ProxyRequests Off
ProxyPassMatch "^(/目录名.*)$" "http://ip/$1"
ProxyPass /目录名 http://ip/
ProxyPassReverse /目录名 http://ip/
</IfModule>
![](http://www.taomulu.net/uploads/allimg/181218/1-1Q21Q6061IM.png)
![](http://www.taomulu.net/uploads/allimg/181218/1-1Q21Q6061IM.png)
泛目录程序推荐(莲花泛目录):