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/09/21 22:18:03 UTC

[users@httpd] Hostname is returned in Error Message

Hi Team,
Below is our scenario.
Apache ----->SAP WEB Dispatcher ------>SAP Portal.
Reverse proxy is working fine except  that when error occurs it returns hostname of Portal in error message e.g . particular service is not active on SAP_Portal_host.
This error is the message returned by the portal. Its not kind of HTTP response like 404, 500 etc.
Is there any way to replace SAP Portal hostname in error message with Apache server hostname.
Best Regards,Tushar.


 		 	   		  

Re: [users@httpd] Hostname is returned in Error Message

Posted by Mark Watts <m....@eris.qinetiq.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09/21/2010 09:18 PM, Tushar Chavan wrote:
> Hi Team,
> 
> Below is our scenario.
> 
> Apache ----->SAP WEB Dispatcher ------>SAP Portal.
> 
> Reverse proxy is working fine except  that when error occurs it returns
> hostname of Portal in error message e.g . particular service is not
> active on SAP_Portal_host.
> 
> This error is the message returned by the portal. Its not kind of
> HTTP response like 404, 500 etc.
> 
> Is there any way to replace SAP Portal hostname in error message with
> Apache server hostname.
> 
> Best Regards,
> Tushar.
> 
> 
> 

If they're proper 4xx or 5xx errors coming from the origin server, set:

	ProxyErrorOverride on

This should allow you to return custom error documents on the proxy.


Mark.

- -- 
Mark Watts BSc RHCE MBCS
Senior Systems Engineer, IPR Secure Managed Hosting
www.QinetiQ.com
QinetiQ - Delivering customer-focused solutions
GPG Key: http://www.linux-corner.info/mwatts.gpg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkyZw0AACgkQBn4EFUVUIO2+kQCg74WnJJPnM2JjU1rmxxEVE+RV
vasAn1e0oT8Ef3ofDC2v9VtuAGr0xGRC
=MfTG
-----END PGP SIGNATURE-----

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