You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Tushar Chavan <tu...@hotmail.com> on 2010/10/06 14:11:12 UTC
[users@httpd] Replacing TEXT on the Response Page
Hi Expert,
Below is our scenario
Browser ----->Apache Server ------>Web Dispatcher ----->SAP J2EE Engine ------>SAP SRM Server..
Now when ever we execute https://apache_server_host:1443/irj , we get a page. Now if I want to replace certain text on the page before displaying to the user. ( e.g page contain 'service xyz is not available on SAP SRM server ' . Now I want to replace SAP SRM server with Apache host name )
How Can we do it ? Will mod_headers solve the purpose?
Best Regards,
Tushar
Re: [users@httpd] Replacing TEXT on the Response Page
Posted by Rainer Jung <ra...@kippdata.de>.
On 06.10.2010 14:11, Tushar Chavan wrote:
> Hi Expert,
>
> Below is our scenario
>
> Browser ----->Apache Server ------>Web Dispatcher ----->SAP J2EE Engine
> ------>SAP SRM Server..
>
> Now when ever we execute https://apache_server_host:1443/irj , we get a
> page. Now if I want to replace certain text on the page before
> displaying to the user. ( e.g page contain 'service xyz is not available
> on SAP SRM server ' . Now I want to replace SAP SRM server with Apache
> host name )
>
> How Can we do it ? Will mod_headers solve the purpose?
If the text is part of the response body, you can do it with
mod_substitute. If the needed replacing is not a simple search and
replace, you might use mod_proxy_html.
mod_headers can not replace content in the response body.
You might also be able to configure your SAP SRM server to directly
output the right name.
Regards,
Rainer
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Replacing TEXT on the Response Page
Posted by Joost de Heer <jo...@sanguis.xs4all.nl>.
> Below is our scenario
>
> Browser ----->Apache Server ------>Web Dispatcher ----->SAP J2EE Engine
> ------>SAP SRM Server..
>
> Now when ever we execute https://apache_server_host:1443/irj , we get a
> page. Now if I want to replace certain text on the page before displaying
> to the user. ( e.g page contain 'service xyz is not available on SAP SRM
> server ' . Now I want to replace SAP SRM server with Apache host name )
> How Can we do it ? Will mod_headers solve the purpose?
No. You need mod_substitute
(http://httpd.apache.org/docs/2.2/mod/mod_substitute.html)
Joost
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org