Login to Administration Console
Select the configuration from the list
Click the Edit Virtual Server button
Click the Content Handling tab
Click the Reverse Proxy sub tab
Click the New button
A new window appears.
In URI enter (/) if you want all the requests to be set revers proxy. Else, enter the URI to be set to reverse proxy.
Enter the server's URL, which you want to reverse proxy.
For example, http://<content server-hostname>:port
Click the OK button
Click the Deployment Pending link in the top right of the screen.
Click the Deploy button
Deployment successful message appears.
Click the Configuration tab
Start the instance.
Access the URI, which you configured as the reverse proxy.
To configure conditional request processing you need to manually edit the virtual server specific obj.conf file.
For example, if you want to configure reverse proxy for all .jsp, .php requests. You need to include the following text in your obj.conf file.
<If $uri =~ '.jsp$' or $uri =~ '.php$'> NameTrans fn="map" from="/" to="http:/" name="custom_reverse_proxy" </If> |
You should insert the above text under the object name default.Add the following text to the end of the obj.conf file.
<Object name ="custom_reverse_proxy"> Route fn="set-origin-server" server="http://<hostname>:<port>" </Object> <Object name ppath="http:*" Service fn="proxy-retrieve" method="*" </Object> |