Skip to main content
A newer release of this product is available.

vserver http-proxy create

Contributors
Suggest changes

Create a HTTP Proxy configuration

Availability: This command is available to cluster and Vserver administrators at the admin privilege level.

Description

The vserver http-proxy create command creates an HTTP proxy configuration for a Vserver.

Parameters

{ -vserver <vserver> - Vserver

Use this parameter to specify the Vserver on which the HTTP proxy configuration is to be created.

Note that -vserver and -ipspace are mutually exclusive options.

| [-ipspace <text>] - Ipspace }

Use this parameter to specify the IPspace on which the HTTP proxy configuration is to be created. The proxy is created on the system Vserver of that IPspace.

Note that -vserver and -ipspace are mutually exclusive options.

-server <text> - Proxy Server

Use this parameter to specify the Fully Qualified Domain Name or IP address of the proxy server.

-port <integer> - Port

Use this parameter to specify the port number on which the HTTP proxy service is configured on the proxy server.

[-skip-config-validation <true>] - Skip the config validation

Use this parameter to skip the HTTP proxy configuration validation.

The proxy configuration is validated to verify that the specified server is reachable and is providing an HTTP proxy service on the specified port.

The validation fails in the following cases:

  • The server is not reachable.

  • The specified port is invalid.

  • HTTP proxy service is not configured on the specified server and port.

  • Route or LIF does not exist.

Examples

The following example creates an HTTP proxy configuration for the Vserver vs0 with Fully Qualified Domain Name as input for the -server parameter:

cluster1::*> vserver http-proxy create -vserver vs0 -server example.com -port 222

The following example creates an HTTP proxy configuration with the IP address as input for the -server parameter:

cluster1::*> vserver http-proxy create -vserver vs0 -server 192.168.0.0 -port 222

The following example creates an HTTP proxy configuration with -skip-config-validation set to true:

cluster1::*> vserver http-proxy create -vserver vs0 -server 192.168.0.0 -port 222 -skip-config-validation

The following example creates an HTTP proxy configuration with the IPspace specified and not the Vserver name:

cluster1::*> vserver http-proxy create -ipspace default -server 192.168.0.0 -port 222