我想基于oracle http服务器12.1.3上的http-cookie更改位置部分
下面是mod_wl_ohs.conf中的原始工作配置
<Location /base>
SetHandler weblogic-handler
WebLogicHost x.x.2.16
WebLogicPort 5051
DynamicServerList ON
WLIOTimeoutSecs 3600
WLSocketTimeoutSecs 750
ConnectRetrySecs 2
ConnectTimeoutSecs 10
</Location>
DynamicServerList ON
对于基于Cookie的位置更改,我的更改如下所示,
RewriteEngine on
#RewriteCond %{HTTP_COOKIE} LOC_Val=New-Loc [NC]
RewriteRule ^/base/(.*) /newbase/$1 [NC]
<Location /newbase>
SetHandler weblogic-handler
WebLogicHost x.x.2.50
WebLogicPort 7071
DynamicServerList ON
WLIOTimeoutSecs 3600
WLSocketTimeoutSecs 750
ConnectRetrySecs 2
ConnectTimeoutSecs 10
</Location>
<Location /base>
SetHandler weblogic-handler
WebLogicHost x.x.2.16
WebLogicPort 5051
DynamicServerList ON
WLIOTimeoutSecs 3600
WLSocketTimeoutSecs 750
ConnectRetrySecs 2
ConnectTimeoutSecs 10
</Location>
DynamicServerList ON
但是我的请求仍然仅转到2.16。出于测试目的,我尝试在RewriteCond行中添加注释,但url请求仍转到2.16。
如何基于cookie值更改URL,以便将请求转发到2.50的位置部分/ newbase