web-server redirect-limit

Function

The web-server redirect-limit command configures the maximum number of times that advertisements are forcibly pushed for an HTTP redirection profile.

The web-server redirect-limit infinite command sets no limit on the maximum number of times that advertisements are forcibly pushed for an HTTP redirection profile.

The undo web-server redirect-limit command deletes the maximum number of times that advertisements are forcibly pushed configured for an HTTP redirection profile.After the command is run, the maximum number of times that advertisements are forcibly pushed for an HTTP redirection profile is restored to the default value (2).

The default maximum number of times that advertisements are forcibly pushed is 2 for an HTTP redirection profile.

This command is supported only on the NetEngine 8000 F1A.

Format

web-server redirect-limit { limit-value | infinite }

undo web-server redirect-limit [ limit-value | infinite ]

Parameters

Parameter Description Value
infinite

Sets no limit on the maximum number of times that advertisements are forcibly pushed for an HTTP redirection profile.

-

redirect-limit limit-value

Specifies the maximum number of times that advertisements are forcibly pushed.

The value is an integer ranging from 1 to 5.

Views

HTTP redirection profile view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
vas write

Usage Guidelines

Usage Scenario

After an HTTP redirection profile is bound to a service policy, the captive portal function based on EDSG services is enabled. To configure the maximum number of times that advertisements are forcibly pushed for an HTTP redirection profile, run the web-server redirect-limit command.If command web-server redirect-limit infinite is configured, it indicates that there is no limit on the maximum number.

Precautions

In VS mode, this command is supported only by the admin VS.

An HTTP redirection profile bound to a prepaid profile is used for redirection after service quotas are exhausted. Therefore, the configured maximum number of times that advertisements are forcibly pushed does not take effect for a prepaid profile.

Example

# Set the maximum number of times that advertisements are forcibly pushed to infinite for an HTTP redirection profile named http2.
<HUAWEI> system-view
[~HUAWEI] http-redirect-profile http2
[~HUAWEI-redirect-profile-http2] web-server redirect-limit  infinite
# Set the maximum number of times that advertisements are forcibly pushed to 3 for an HTTP redirection profile named http2.
<HUAWEI> system-view
[~HUAWEI] http-redirect-profile http2
[~HUAWEI-redirect-profile-http2] web-server redirect-limit 3
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic