Scenario 4: Communication with Protocol Switch Through Reverse Proxy

When HTTPS is used in the Internet, HTTP can be used from the reverse proxy to the server. In this special case, the generation of absolute URLs is very important, particularly for special resources such as return addresses that match the external protocol used in the Internet. When the programming interface is called without a specified protocol; instead only a server object is specified, the protocol currently in use determines which name and port to use.  In such a case one entry only is usually sufficient. The protocol to be used is returned from the API call.

HTTPURLLOC

MANDT

SORT_KEY

PROTOCOL

APPL

HOST

PORT

100

010

HTTPS

*

WWW.SAP.COM

443

It is important that for the inbound request the reverse proxy uses the active protocol used in the Internet section of the request.  The Web dispatcher transfers this information into a header field named ClientProtocol, when option wdisp/add_clientprotocol_header = 1 is set. With an Apache reverse proxy this can be done using the request header with client protocol HTTPS.