Network Deployment (Distributed operating systems), v8.0 > Reference > Sets


Rewriting rules configuration


Rewriting rules define how the proxy server rewrites URLs. Responses that have been redirected by target servers typically return a 302 status code with a location header that defines the URL that the client should be redirected to. Rewriting this URL is necessary if the target server is not aware of the proxy servers. The redirected URL is modified to correctly point clients to the proxy server instead of directly to a target server that may not be visible to clients. Use the following properties to configure the URL rewriting rules for a proxy server The proxy server only supports rewriting redirected responses. Therefore, these the following settings only apply to redirected responses. These settings do not apply to requests because the proxy server does not support URL rewriting for requests. From the console...

    Servers > Server Types > WebSphere proxy servers > proxy_server_name

> HTTP proxy server settings > Rewriting rules > New.


From URL Pattern

Original URL pattern in the 302 response header from the target server.

The pattern can include the following wild card symbol: *


To URL Pattern

Specifies how that URL should be modified so that the client is redirected to the proxy server or an appropriate public URL.

The pattern can include the following wild card symbol: *

A rule with a from URL pattern of http://internalserver/* and to url pattern of http://publicserver/* would cause a redirected response with the original location header of http://internalserver/secure/page.html to be rewritten as http://publicserver/secure/page.html.
Set up the proxy server

+

Search Tips   |   Advanced Search