Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

sqldatasource dal, wwwxxxenden, convert raid5 to raid 10 mdadm, apache force chunked, nrao wwwxxx, xxxxxdup, procmail change subject header, wwwXxx not20, Wwwxxx.doks sas, linux raid resync after reboot

Links

XODOX
Impressum

#1: Replacing TEXT on the Response Page

Posted on 2010-10-06 14:11:12 by 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

<html>
<head>
<style><!--
..hmmessage P
{
margin:0px=3B
padding:0px
}
body.hmmessage
{
font-size: 10pt=3B
font-family:Tahoma
}
--></style>
</head>
<body class=3D'hmmessage'>
Hi Expert=2C<BR>
&nbsp=3B<BR>
Below is our scenario <BR>
&nbsp=3B<BR>
Browser -----&gt=3BApache Server ------&gt=3BWeb Dispatcher -----&gt=3BSAP =
J2EE Engine ------&gt=3BSAP SRM Server..<BR>
&nbsp=3B<BR>
Now when ever we execute <A href=3D"https://apache_server_host:1443/irj">ht=
tps://apache_server_host:1443/irj</A> =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 ) <BR>
&nbsp=3B<BR>
How Can we do it ? Will mod_headers solve the purpose?<BR>
&nbsp=3B<BR>
Best Regards=2C<BR>
Tushar<BR>
&nbsp=3B<BR>
&nbsp=3B<BR> </body>
</html>=

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

Report this message

#2: Re: Replacing TEXT on the Response Page

Posted on 2010-10-06 14:22:12 by 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 <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

Report this message

#3: Re: Replacing TEXT on the Response Page

Posted on 2010-10-06 14:23:45 by 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 <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

Report this message