Novell Home

Customizing the Proxy Error Page

Novell Cool Solutions: Feature

Digg This - Slashdot This

Posted: 31 May 2002
 

When PROXY.NLM loads it looks for a PXYERR.HTM file in SYS:ETC\PROXY\DATA. If that file is not found, it will use its own internal error page. By creating your own PXYERR.HTM file you can customize the look and feel of the proxy error page. When Proxy reads the PXYERR.HTM it will look for the following strings and replace them before delivering the file to the browser:

<ERROR_DESCRIPTION>
This is a text description of the error that occurred and is used to provide information in addition to the actual ERROR_STATUS.

<ERROR_STATUS>
This is the actual error status that is being returned. For a list of status codes and their descriptions, see RFC 2068, "Hypertext Transfer Protocol -- HTTP/1.1"

<PROXY_ADDRESS>
This is the "service://host:port" combination that is needed for getting other components of the document, such as graphics. It is based on the actual interface that the original request came in on.

When using any of these strings, do include the "<" and ">". The following is a very simple example of a PXYERR.HTM file:

<HTML>
<HEAD>
<TITLE>Proxy Error</TITLE>
</HEAD>
<BODY>
<IMG ALIGN=TOP SRC="<PROXY_ADDRESS>/data/nbm1top.jpg" BORDER=0>
<BR>
<H3>An error has occurred while trying to fill your request . .. </H3>
<B>
<ERROR_STATUS> : <ERROR_DESCRIPTION>
</B>
</BODY>
</HTML>

NOTE: The PXYERR.HTM is only read when PROXY.NLM loads. If you make any changes to this file you must unload/reload PROXY.NLM before the change will take effect.

Other Suggestions

Alexandre Moura

I changed the pxyerr.htm example for BorderManager here in my company.

I have two frames:

1st (up) It's the error message
and down (embaixo.htm) it's a fixed message.


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell