Sun Java System Web Server 6.1 SP12 Reverse Proxy Plug-in Release Notes

Example 2

This configuration will proxy all requests for the URI “/app” without first checking for a local version. The Reverse Proxy plug-in provides its own credentials through Basic-Auth to the origin server.


<Object name="default">
# Assign the URI "/app" (and any more specific URIs;
# /app/foo.html, /app/qwe.jsp, etc) the object name
# "server.example.com"
NameTrans fn="assign-name"

          from="/app(|/*)"
          name="server.example.com"
          
...
</Object>

# Execute these instructions for any resource with the assigned name
# "server.example.com"
<Object name="server.example.com">

# Proxy the requested resource to the URL
# "http://server.example.com:8080"
Service fn="service-passthrough"

        servers="http://server.example.com:8080"
        user="blues"
        password="j4ke&elwOOd
"
        
</Object>