cancel
Showing results for 
Search instead for 
Did you mean: 

Apache Reverse Proxy with Abap Web query

Former Member
0 Kudos

Hi to all

We are trying to configure apache 2 to work as a reverse proxy with web abap Netweaver installation.

From inside the network the web query is fine.

Running the query with the reverse proxy we have only the html code in the browser. All the scripts and css are not present.

We checked some messages inside the forum and we have tried a lot of stuff without success.

We use always linux (Fedora, Ubuntu with xampp or apache only) plus the html module or the publisher from http://apache.webthing.com.

Our installation is like this the reverse proxy in the dmz and the netweaver to the inside off coarse, and we don't have the same domain name, i don't know if this is important.

Any help/idea is valuable.

Thank you

Yiannis

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Yiannis,

Can you list the apache reverse proxy-specific configuration?

Regards,

Stoimen

Former Member
0 Kudos

Hi Stoimen

Bellow is the proxy part in my apache's config

ProxyVia On

ProxyBadHeader IsError

ProxyRequests Off

ProxyPass /nbi http://192.168.1.59:8001/sap/bw

#ProxyPassReverse /nbi http://192.168.1.59:8001/sap/bw/

ProxyHTMLURLMap http://192.168.1.59:8001/sap/bw/ /nbi

ProxyHTMLLogVerbose On

LogLevel Info

<Proxy *>

Order Allow,Deny

Allow from all

</Proxy>

Thanks

Yiannis

Former Member
0 Kudos

Hi,

You need to add these ditectives at least :

ProxyPreserveHost on

RewriteEngine on

RewriteRule ^/(sap\(.*) http://192.168.1.59:8001/$1 [P,L]

The rewrite rule is to manage the "URM mangling" that is specific to SAP abap.

Check SDN, there is a lot of documentation there.

Specially

"Internet Connectivity to SAP Appications, Nicolas Holshouser, Copyright SAP AG 2005.

I dont have a link for it but the search engine is your friend...

Best Regards,

Olivier

Former Member
0 Kudos

Hi Olivier

I have seen your solution in other messages but i didn't try it because i was trying to work with the html_proxy module.

I read the documents you gave me plus some apache tutorials on the rewrite rule.

In any case i have my installation working now.

I did some extra changes in my config so now the rules are like that

ProxyVia On

ProxyBadHeader IsError

ProxyRequests Off

ProxyPreserveHost On

ProxyPass /sap http://192.168.1.59:8001/sap

ProxyPassReverse /sap http://192.168.1.59:8001/sap

RewriteEngine On

RewriteRule ^/(sap\(.*) http://192.168.1.59:8001/$1 [P,L]

Thanks again for your help

Yiannis

Answers (0)