Replacing TEXT on the Response Page

Replacing TEXT on the Response Page

am 06.10.2010 14:11:12 von Tushar Chavan

--_c8d3e10c-fbf3-4a7a-9843-940d5a2bf2b1_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


Hi Expert=2C

=20

Below is our scenario=20

=20

Browser ----->Apache Server ------>Web Dispatcher ----->SAP J2EE Engine ---=
--->SAP SRM Server..

=20

Now when ever we execute https://apache_server_host:1443/irj =2C we get a p=
age. 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 serv=
er ' . Now I want to replace SAP SRM server with Apache host name )=20

=20

How Can we do it ? Will mod_headers solve the purpose?

=20

Best Regards=2C

Tushar

=20

=20
=

--_c8d3e10c-fbf3-4a7a-9843-940d5a2bf2b1_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable






Hi Expert=2C

 =3B

Below is our scenario

 =3B

Browser ----->=3BApache Server ------>=3BWeb Dispatcher ----->=3BSAP =
J2EE Engine ------>=3BSAP SRM Server..

 =3B

Now when ever we execute ht=
tps://apache_server_host:1443/irj
=2C we get a page. Now if I want to r=
eplace certain text on the page before displaying to the user. ( e.g page c=
ontain 'service xyz is not available on SAP SRM server ' . Now I want to re=
place SAP SRM server with Apache host name )

 =3B

How Can we do it ? Will mod_headers solve the purpose?

 =3B

Best Regards=2C

Tushar

 =3B

 =3B

=

--_c8d3e10c-fbf3-4a7a-9843-940d5a2bf2b1_--

Re: Replacing TEXT on the Response Page

am 06.10.2010 14:22:12 von Joost de Heer

> 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 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: Replacing TEXT on the Response Page

am 06.10.2010 14:23:45 von Rainer Jung

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 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