View Source

|Name:|org.icefaces.publicContextPath|
|Values:|*null*\|valid path|
|Since:|2.0|
|Scope:|application|

h5. Application Scope

Setting _org.icefaces.publicContextPath_ to a valid path tells ICEfaces to replace the natural context path (usually, the web-application name) of all resources, form URLs, local bookmarks and local redirects to the specified path. This is useful when the application is served publicly through a reverse proxy or load balancer and one wants to avoid defining complex URL rewriting rules.

{panel}
{code:xml|borderStyle=dashed}
<context-param>
<param-name>org.icefaces.publicContextPath</param-name>
<param-value>/myPublicPath</param-value>
</context-param>
{code}
{panel}