If-Match Temp-Pass - H3C MSR Series Command Reference Manual

Comware 7 security
Hide thumbs Also See for MSR Series:
Table of Contents

Advertisement

<Sysname> system-view
[Sysname] portal web-server wbs
[Sysname-portal-websvr-wbs] if-match original-url http://www.abc.com.cn redirect-url
http://192.168.0.1
# Configure a match rule to redirect HTTP requests that carry the user agent string
5.0(WindowsNT6.1)AppleWebKit/537.36(KHTML,likeGecko)Chrome/36.0.1985.125Safari/537.
36 to the URL http://192.168.0.1.
<Sysname> system-view
[Sysname] portal web-server wbs
[Sysname-portal-websvr-wbs] if-match user-agent
5.0(WindowsNT6.1)AppleWebKit/537.36(KHTML,likeGecko)Chrome/36.0.1985.125Safari/537.36
redirect-url http://192.168.0.1
Related commands
display portal web-server
portal free-rule
url
url-parameter

if-match temp-pass

Use if-match temp-pass to configure a match rule for temporary pass.
Use undo if-match temp-pass to restore the default.
Syntax
if-match { original-url url-string | user-agent user-agent } * temp-pass [ redirect-url url-string |
original ]
undo if-match { original-url url-string | user-agent user-agent } * temp-pass
Default
No match rules for temporary pass are configured.
Views
Portal Web server view
Predefined user roles
network-admin
Parameters
original-url url-string: Specifies a URL string to match the URL in HTTP/HTTPS requests of portal
users. The specified URL must be a complete URL starting with http:// or https://, a case-sensitive
string of 1 to 256 characters.
user-agent user-agent: Specifies a user agent string to match the User-Agent string in
HTTP/HTTPS requests. The user agent string is a case-sensitive string of 1 to 255 characters. The
User-Agent string in HTTP or HTTPS requests includes information about hardware manufacturer,
operating system, browser, and search engine.
redirect-url url-string: Redirects the matching Web requests to the specified URL. The specified
URL must be a complete URL starting with http:// or https://, a case-sensitive string of 1 to 256
characters.
original: Redirects the matching Web requests to the originally requested URLs.
305

Advertisement

Table of Contents
loading

Table of Contents