Forum Discussion

aschi's avatar
aschi
Icon for Nimbostratus rankNimbostratus
May 16, 2013

Proxypass

Hi

 

I'm Using the ProxyPass iRule, Version 10.9.

 

I setup everting as explained in the iRule.

 

I have the following two String Records in the Data Group List:

 

nlb-test/antrag := intpw10088:8080/railo/bpc_antrag ACA-Pool_NLB-Test_1Nodes_http isn't working

 

nlb-test/ebp := v10096:8080/ebp ACA-Pool_NLB-Test_https works

 

In each Pool is the Node as in the Redirect-String mentionend. The Problem is that just one Redirect (ProxyPass) is working

 

I setup up both Hosts that they should work with both redirects.

 

The redirects works perfect for the Pool ACA-Pool_NLB-Test_https. If I cofigure that both redirect go to the same Server it works for this Pool

 

nlb-test/antrag := v10096:8080//railo/bpc_antrag ACA-Pool_NLB-Test_https

 

nlb-test/ebp := v10096:8080/ebp ACA-Pool_NLB-Test_https

 

But it doesn't work if I use the Other Pool

 

nlb-test/antrag := intpw10088:8080/railo/bpc_antrag ACA-Pool_NLB-Test_1Nodes_http

 

nlb-test/ebp := intpw10088:8080/ebp ACA-Pool_NLB-Test_https

 

The Url itself are working

 

 

 

I see in the FW that the F5 is connecting on Port 80, not Port 8080 as it should.

 

The Debug shows the following from the host that doesn't work:

 

: /Common/ACA-VS_NLB-Test_https: 10.85.4.20%1:56158 -> 10.85.50.40%1:443

 

: VS=/Common/ACA-VS_NLB-Test_https, Host=nlb-test, URI=/antrag: Found Rule, Client Host=nlb-test, Client Path=/antrag, Server Host=nlb-test, Server Path=/railo/bpc_antrag

 

: VS=/Common/ACA-VS_NLB-Test_https, Host=nlb-test, URI=/antrag: Redirecting to

 

: VS=/Common/ACA-VS_NLB-Test_https, Host=nlb-test, URI=/antrag/: Found Rule, Client Host=nlb-test, Client Path=/antrag, Server Host=nlb-test, Server Path=/railo/bpc_antrag

 

: VS=/Common/ACA-VS_NLB-Test_https, Host=nlb-test, URI=/antrag/: Using parsed pool ACA-Pool_NLB-Test_2Nodes_http (make sure you have OneConnect enabled)

 

: /Common/ACA-VS_NLB-Test_https: 10.85.4.20%1:56159 -> 10.85.50.40%1:443

 

: VS=/Common/ACA-VS_NLB-Test_https, Host=nlb-test, URI=/antrag/: Found Rule, Client Host=nlb-test, Client Path=/antrag, Server Host=nlb-test, Server Path=/railo/bpc_antrag

 

: VS=/Common/ACA-VS_NLB-Test_https, Host=nlb-test, URI=/antrag/: Using parsed pool ACA-Pool_NLB-Test_2Nodes_http (make sure you have OneConnect enabled)

 

This is the debug Log from the Host hat works,

 

: /Common/ACA-VS_NLB-Test_https: 10.85.4.20%1:56084 -> 10.85.50.40%1:443

 

: VS=/Common/ACA-VS_NLB-Test_https, Host=nlb-test, URI=/antrag: Found Rule, Client Host=nlb-test, Client Path=/antrag, Server Host=v10096:80, Server Path=/railo/bpc_antrag

 

: VS=/Common/ACA-VS_NLB-Test_https, Host=nlb-test, URI=/antrag: Redirecting to

 

: VS=/Common/ACA-VS_NLB-Test_https, Host=nlb-test, URI=/antrag/: Found Rule, Client Host=nlb-test, Client Path=/antrag, Server Host=v10096:80, Server Path=/railo/bpc_antrag

 

: VS=/Common/ACA-VS_NLB-Test_https, Host=nlb-test, URI=/antrag/: Using parsed pool ACA-Pool_NLB-Test_https (make sure you have OneConnect enabled)

 

: VS=/Common/ACA-VS_NLB-Test_https, Host=nlb-test, URI=/antrag/: New Host=v10096:80, New Path=/railo/bpc_antrag/

 

: VS=/Common/ACA-VS_NLB-Test_https, Host=nlb-test, URI=/antrag/: Removed Accept-Encoding header

 

: VS=/Common/ACA-VS_NLB-Test_https, Host=nlb-test, URI=/antrag/: 200 response from /Common/ACA-Pool_NLB-Test_https 10.85.38.111%1 443

 

: VS=/Common/ACA-VS_NLB-Test_https, Host=nlb-test, URI=/antrag/: $stream_expression_cmd: STREAM::expression "@v10096:80/railo/bpc_antrag@nlb-test/antrag@", $stream_enable_cmd: STREAM::enable

 

: VS=/Common/ACA-VS_NLB-Test_https, Host=nlb-test, URI=/antrag/: Error setting stream expression (). If you enable static::RewriteResponsePayload, then you should add a stream profile to the VIP. Else, set static::RewriteResponsePayload to 0 in this iRule.

 

: VS=/Common/ACA-VS_NLB-Test_https, Host=nlb-test, URI=/antrag/: Checking Location=, $protocol=

 

: VS=/Common/ACA-VS_NLB-Test_https, Host=nlb-test, URI=/antrag/: Checking Content-Location=, $protocol=

 

: VS=/Common/ACA-VS_NLB-Test_https, Host=nlb-test, URI=/antrag/: Checking URI=, $protocol=

 

The difference was that the Member from the Pool that didn't work was listening on Port 80 and the member in the other Pool on Port 443 which doesn't make any sense to me because the redirect "ProxyPass" it goint to Port 8080.

 

It works now but doesn't really make sense to me.

 

I just wanted to post this in case other People have the same Problem

 

Best Regards,

 

Roger

 

No RepliesBe the first to reply