This section contains the following topics:
This configuration requires two apache modules: mod_proxy (used for transforming the Apache web server into an intermediary server); and mod_rewrite (performs modifications to the URL based upon a set of rules and configurations).
See the SAP documentation to configure the Apache web server as a front‑end web server to the Web AS.
The following steps summarize how to verify the configuration. Use the steps only for reference.
Follow these steps:
LoadModule rewrite_module modules/mod_rewrite.so LoadModule proxy_module modules/libproxy.so LoadModule proxy_connect_module modules/mod_proxy_connect.so LoadModule proxy_http_module modules/mod_proxy_http.so AddModule mod_rewrite.c AddModule mod_proxy.c RewriteLog "/etc/httpd/logs/rewrite_log" RewriteLogLevel 9
<Location /application_root_dir>
RewriteEngine On
RewriteCond %{THE_REQUEST} \.jsp
RewriteRule ^(.+) http://somehost.com:90%{REQUEST_URI} [P]
RewriteCond %{THE_REQUEST} Example
RewriteRule ^(.+) htt://somehost.com:90%{REQUEST_URI} [P]
</Location>
See the SAP documentation to configure the Sun Java Systems web server as a front-end web server to the Web AS.
The following process summarizes how to verify the configuration (obj.conf) of a Sun Java System Web server in reverse proxy mode. Use the steps only for reference.
Follow these steps:
NameTrans fn="map" from="/realma" name="reverse-proxy-/reamla" to="http:/realma"
Where "from=" contains the name of local virtual path (for example, /realma) and "to=" contains the remote virtual path (for example, http:/realma). Use the format in the sample to specify "to=" (http:/<Virtual Path>).
<Object name="reverse-proxy-/reamla"> Route fn="set-origin-server" server="<URL>" </Object> <Object ppath="http:*"> Service fn="proxy-retrieve" method="*" </Object>
Where reverse-proxy-/reamla is name mentioned in NameTrans directive, and the <URL> is a URL for the remote server. For example:
<Object name="reverse-proxy-/reamla"> Route fn="set-origin-server" server="http://server.myorg.org:CA Portal" </Object> <Object ppath="http:*"> Service fn="proxy-retrieve" method="*" </Object>
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|