有一个 apache 服务器,apache 服务器后面有四个 weblogic 节点。客户端调用 apache 服务器; example.com/ADZ、example.com/media、example.com
客户端希望当它们只调用空 url example.com 他们想要访问 example.com/ADZ你能帮帮我吗?
这是可能的配置。
<IfModule mod_weblogic.c>
WebLogicCluster wls1:7003,wls1:7005,wls2:7003,wls2:7005
</IfModule>
RewriteEngine on
RewriteRule ^(.*) /ADZ [R]
<Location /ADZ>
SetHandler weblogic-handler
</Location>
<Location /media>
SetHandler weblogic-handler
</Location>
when they call only empty url example.com they want to access example.com/ADZ
使用此规则:
RewriteEngine On
RewriteRule ^/?$ /ADZ [L,R]