#Load key modules for reverse proxy
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_html_module modules/mod_proxy_html.so
LoadModule xml2enc_module modules/mod_xml2enc.so
LoadModule headers_module modules/mod_headers.so
# Configure mod_proxy_html to understand HTML4/XHTML1
<IfModule proxy_html_module>
Include conf/extra/httpd-proxy-html.conf
</IfModule>
Listen 443 https
<VirtualHost _default_:443>
SSLEngine on
SSLProxyEngine on
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
ServerName reverseproxy.customer.com:443
SSLCertificateFile "${SRVROOT}/conf/ssl/reverseproxy.crt"
SSLCertificateKeyFile "${SRVROOT}/conf/ssl/reverseproxy.key"
DocumentRoot "${SRVROOT}/htdocs"
# DocumentRoot access handled globally in httpd.conf
CustomLog "${SRVROOT}/logs/ssl_request.log" \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
<Directory "${SRVROOT}/htdocs">
Options Indexes Includes FollowSymLinks
AllowOverride AuthConfig Limit FileInfo
Require all granted
</Directory>
#Proxy rules for the Central Redirect Node
ProxyPass /authn/ https://authn.<region>.hana.ondemand.com/
ProxyPassReverse /authn/ https://authn.<region>.hana.ondemand.com/
ProxyPassReverse /authn/ https://authn.<region>.hana.ondemand.com:443/
<Location /authn/>
ProxyPassReverse /
ProxyHTMLEnable on
SetOutputFilter proxy-html
ProxyHTMLCharsetOut *
RequestHeader unset Accept-Encoding
ProxyHTMLURLMap https://<SAP_Cloud_Identity_Host>/ /sci/
ProxyHTMLURLMap https://<SAP_Cloud_Identity_Host>:443/ /sci/
ProxyHTMLURLMap https://customer.<region>.sapbusinessobjects.cloud/ /
ProxyPassReverseCookiePath / /authn/
</Location>
#Proxy rules for remote on-premise HANA at https://righana2.yourcompany.corp:4300/
ProxyPass /righana2/ https://righana2.yourcompany.corp:4300/
ProxyPassReverse /righana2/ https://righana2.yourcompany.corp:4300/
<Location /righana2/>
ProxyPassReverse /
ProxyPassReverseCookiePath / /righana2
ProxyPassReverseCookiePath /sap/hana/xs/saml /righana2/sap/hana/xs/saml
</Location>
#Proxy rules for the SAML 2 Identity Provider at https://<SAP_Cloud_Identity_Host>/
ProxyAddHeaders off
ProxyPass /sci/ https://<SAP_Cloud_Identity_Host>/
ProxyPassReverse /sci/ https://<SAP_Cloud_Identity_Host>/
ProxyPassReverse /sci/ https:/<SAP_Cloud_Identity_Host>:443/
ProxyPassReverseCookieDomain <SAP_Cloud_Identity_Host> reverseproxy.customer.com
<Location /sci/>
Header edit Set-Cookie "^(.*; [Pp]ath=/)(.*)$" "$1sci/$2"
ProxyHTMLEnable on
SetOutputFilter proxy-html
ProxyHTMLCharsetOut *
RequestHeader unset Accept-Encoding
ProxyHTMLURLMap /ui/ /sci/ui/
ProxyHTMLURLMap /universalui/ /sci/universalui/
ProxyHTMLURLMap /saml2/ /sci/saml2/
ProxyHTMLURLMap https://authn.<region>.hana.ondemand.com/ /authn/
ProxyHTMLURLMap https://authn.<region>.hana.ondemand.com:443/ /authn/
ProxyHTMLURLMap https://righana2.yourcompany.corp:4300 /righana2
</Location>
#Proxy rules for BOC (Simple URL) at https://customer.<region>.sapbusinessobjects.cloud/
ProxyPass / https://customer.<region>.sapbusinessobjects.cloud/
ProxyPassReverse / https://customer.<region>.sapbusinessobjects.cloud/
ProxyPassReverse / https://customer.<region>.sapbusinessobjects.cloud:443/
<LocationMatch "^/$|^/sap/fpa/ui/tenants/.*|^/logout.*">
ProxyHTMLEnable on
ProxyHTMLDocType "<!DOCTYPE html>" XML
SetOutputFilter proxy-html
ProxyHTMLCharsetOut *
RequestHeader unset Accept-Encoding
ProxyHTMLURLMap https://authn.<region>.hana.ondemand.com/ /authn/
ProxyHTMLURLMap https://authn.<region>.hana.ondemand.com:443/ /authn/
</LocationMatch>
</virtualhost>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 | |
4 | |
4 | |
4 |