cancel
Showing results for 
Search instead for 
Did you mean: 

URI /sap/bc/bsp/sap/ is redirected to /sap/sap(bD1kZSZjPTEwMA==)/bc/bsp/sap

markus_taxacher
Explorer
0 Kudos

Hi,

we have a Apache Reverse Proxy calling an BSP on an NW7 AS ABAP System.

The URI which is called by the proxy is:

/sap/bc/bsp/sap/xyz/xyz.htm

After this request, the proxy does a new request with the session information included:

/sap/sap(bD1kZSZjPTEwMA==)/bc/bsp/sap/xyz/xyz.htm

So... he has added the session info ("bD1kZSZjPTEwMA==") plus an additional /sap/ ... so with the additional /sap/ it's not working. What's the problem here?

Because we have a reverse proxy in front, I tried to solve the problem with a RewriteRule:

RewriteRule ^sap/sap\((.)\)(.) https://server:44300/sap($0)$1 [P]

without success...

Do you know why the RewriteRule is not working or why he is adding the additional /sap/ in front of the URI?

Thanks!

BR,

Markus

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

>After this request, the proxy does a new request with the session information included:

>/sap/sap(bD1kZSZjPTEwMA==)/bc/bsp/sap/xyz/xyz.htm

This is the classical URL mangling problem.

Yes you have to use Apache URL rewrite rules such as

RewriteRule ^/(sap\(.*) https://server:44300/ [P]

Check the SDN wiki on reverse proxies, it has really good information.

Regards,

Olivier