0

1 つの Apache サーバーがあり、Apache サーバーの背後に 4 つの weblogic ノードがあります。クライアントは apache サーバーを呼び出します。example.com/ADZ 、 example.com/media 、 example.com

クライアントは、空の URL の example.com だけを呼び出すときに、example.com/ADZ にアクセスしたいと考えています。

これは 5 月の構成です。

<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>
4

1 に答える 1

0

when they call only empty url example.com they want to access example.com/ADZ

次のルールを使用します。

RewriteEngine On
RewriteRule ^/?$ /ADZ [L,R]
于 2013-11-06T07:53:23.793 に答える