Using an on-premise reverse proxy allows you to combine on-premise and cloud-based web applications in the same browser window.
SAP Business Technology Platform, Neo environment will sunset on December 31, 2028, subject to terms of customer or partner contracts.
For more information, see SAP Note 3351844.
This documentation refers to SAP Business Technology Platform, Neo environment. If you are looking for documentation about other environments, see SAP Business Technology Platform
↗️ .
The on-premise reverse proxy method is applicable to:
-
Java applications
A Java application must be deployed and started in advance.
-
HTML5 applications
-
Both host and port mapping for reverse proxy
-
More than one reverse proxy address can be mapped to the same application URL.
You are often not allowed to combine on-premise and cloud-based web applications in one browser window. It is not allowed because browsers use the cross-site information transfer prevention policy. Browsers count this type of information transfer as a security threat by default, which makes it impossible to perform cookie exchange and, in particular, cookie-based authentication.
You can use an on-premise reverse proxy as the sole origin for the browser. This feature allows you to manage on-premise and cloud applications in the same browser window. The commands listed in this topic allow applications running on SAP BTP to be accessed via such proxies.
Please have in mind that you cannot use these commands for applications configured with custom domains.
There are several options available for managing mappings between the cloud application uniform resource identifier (URI) and the proxy host. Having a proxy-to-application mapping allows access to the application via the on-premise reverse proxy.
Open the command prompt and navigate to the folder containing neo.bat/neo.sh
(<SDK installation folder>/tools
). Then, you can manage the proxy host mappings by using the reverse-proxy group of console client commands:
-
The
map-proxy-host
command maps an application host to an on-premise reverse proxy host and port.neo map-proxy-host --account mysubaccount --app-host app.hana.ondemand.com --proxy loc.corp:123 -h hana.ondemand.com -u username -p ******
-
The
unmap-proxy-host
command deletes the mapping between an application host and an on-premise reverse proxy host and port.neo unmap-proxy-host --account mysubaccount --app-host app.hana.ondemand.com --proxy loc.corp:123 -h hana.ondemand.com -u username -p ******
-
The
list-proxy-host-mappings
command lists the proxy hosts mapped to an application host.neo list-proxy-host-mappings --account mysubaccount --app-host app.hana.ondemand.com --proxy loc.corp:123 -h hana.ondemand.com -u username -p ******
You need to set the on-premise proxy with a header with key x-proxy-host
. As a result, when your HTTP request arrives at the cloud, it will be routed properly to App 2. The header value should contain the application host of App 2, which is app.hana.ondemand.com
in this specific example.
If you do not use the
x-proxy-host
header, you will receive the Service Unavailable error message.
Related Information