set-reverse-proxy-prop <connect_options> [--echo|-e] --no-prompt|-Q] [--verbose|-v] --config|-c config-name --vs|-s vs-name --uri-prefix|-r uri-prefix (propertyname=value)+
Use this command to set the reverse proxy properties. The properties that you can edit are as follows:
sticky-cookie - The name of a cookie that, when present in a response, will cause subsequent requests to stick to that origin server.
sticky-param - The name of a URI parameter to inspect for route information. If a URI parameter is present in a request URI and its value contains a colon (:) followed by a route ID, the request will stick to the origin server identified by that route ID.
route-header - The name of the HTTP request header used to communicate the route IDs to origin servers.
route-cookie - The name of the cookie generated by the server when it encounters a sticky-cookie cookie in a response. The route-cookie cookie stores a route ID that enables the server to direct subsequent requests back to the same origin server.
rewrite-headers - A list of HTTP request headers. The value can be host, location, or content-location where,
host: Indicates whether the host HTTP request header is rewritten to match the host specified by the server parameter. The default is false, which means that the host header is not rewritten.
location: Indicates whether the location HTTP response headers that match the server parameter should be rewritten. The default is true,which means that the matching location headers are rewritten.
content-location: Indicates whether the content-location HTTP response headers that match the server parameter should be rewritten. The default is true, which means that the content-location headers are rewritten.
auth-user — The user to authenticate as.
auth-password — The password that is needed for authentication.
auth-header — The name of the HTTP request header that is used to communicate the credentials. The default value is Authorization. When authenticating to a proxy server, you can specify the value as Proxy-authorization.
client-cert-nickname — The nickname of the client certificate to present to the remote server. The default is not to present a client certificate.
validate-server-cert — Indicates whether the proxy server validates the certificate presented by the remote server. The default value is true, indicating that the proxy server will accept any certificate.
use-keep-alive — Indicates whether the HTTP client should attempt to use persistent connections. The default value is true.
keep-alive-timeout — The maximum number of seconds to keep a persistent connection open. The default value is 29.
always-use-keep-alive — Indicates whether the HTTP client can reuse the existing persistent connections for all types of requests. The default value is false, indicating that persistent connections will not be reused for non-GET requests or for requests with a body.
protocol — The HTTP protocol version string. By default, the HTTP client uses either HTTP/1.0 or HTTP/1.1 based on the contents of the HTTP request. In general, you should not use the protocol parameter unless you encounter specific protocol interoperability problems.
proxy-agent — The value of the Proxy-agent HTTP request header. The default is a string that contains the proxy server product name and version.
timeout — The maximum number of seconds a connection can be idle. The default value is 300.
For connect_options description, see help(1).
Specify this option to print this command on the standard output before executing. This option also prints the default value for all the non-mandatory options that you do not provide in the command.
If you specify this option, wadm will not prompt you for passwords while executing this command. Use this option if you have defined all passwords in a password file and specified the file using the --password-file connect_option.
Specify this option to display a verbose output.
Specify the URI prefix of the reverse proxy.
Specify the name of the configuration.
Specify the name of the virtual server.
wadm set-reverse-proxy-prop --user=admin --host=serverhost --password-file=../admin.passwd --port=8989 --ssl=true --no-prompt --rcfile=null --config=config1 --vs=vs --uri-prefix=/simple/ auth-header=Authorization always-use-keep-alive=true sticky-cookie=JSESSIONID validate-server-cert=false use-keep-alive=true route-header=Proxy-jroute rewrite-headers=loconfig1ion, content-loconfig1ion sticky-param=jsessionid route-cookie=JROUTE server=http://sun.com:8080 keep-alive-timeout=30
The following exit values are returned:
command executed successfully
error in executing the command
help(1), create-reverse-proxy(1), delete-reverse-proxy(1), list-reverse-proxy-uris(1), get-reverse-proxy-prop(1), block-reverse-proxy-header(1), forward-reverse-proxy-header(1), list-reverse-proxy-headers(1)