No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Fat AP and Cloud AP V200R008C00 CLI-based Configuration Guide

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Mechanism

Mechanism

URL Format

A URL is the address of a web page or an accessible resource on the Internet.

The standard format of a URL is protocol://hostname[:port]/path[?query]. Table 26-20 lists the parameters.

Table 26-20  URL parameters

Field

Description

protocol

An application protocol. Currently, the AP supports only HTTP.

hostname

Domain name or IP address of the Web server.

:port

(Optional) A port name. Application protocols have default port numbers, for example, the default HTTP port is 80. If the Web server uses a non-standard port, the port in the URL cannot be omitted.

path

A directory or file path on the host. The path is a character string that can be separated by slashes (/).

?query

(Optional) This field is used to transmit parameters to dynamic Web pages.

Figure 26-35 uses "http://www.example.com:8088/news/edu.aspx?name=tom&age=20" as an example:

Figure 26-35  URL format

  • http represents the protocol.
  • www.example.com represents the host name.
  • 8088 represents the communication port.
  • news/edu.aspx represents the path.
  • name=tom&age=20 represents the parameters.

URL Matching Mode

URL matching modes are prefix matching, suffix matching, keyword matching, and exact matching.

You can configure URL and domain name rules in whitelist and blacklist. The matching scope of URL rules contains the whole URL, whereas that of domain name rules contains only the domain name (or IP address). URL and domain name rules support the same matching modes. The Table 26-21 compares the several matching modes.

Table 26-21  URL matching modes

Mode

Function

Character String Example

Result

Prefix matching

Matches URLs that start with the specified character string.

www.example*

All URLs that start with www.example are matched, including www.example.com and www.example.com/solutions.do.

Suffix matching

Matches URLs that end with the specified character string.

*aspx

All URLs that end with aspx are matched, including www.example.com/news/solutions.aspx www.example.com/it/price.aspx and 10.1.1.1/sports/abc.aspx.

Keyword matching

Matches URLs that include the specified character string.

*sport*

All URLs that include sport are matched, including sports.example.com/news/solutions.aspx, sports.example.com/it/ and 10.1.1.1/sports/.

Exact matching

First checks whether the URL matches the specified character string. If no, delete the last directory of the URL and check again. If the URL is still not matched, delete the second last directory and check again until the domain name can match a specific character string.

www.example.com

Based on matching rules, the following URLs match www.example.com:

  • www.example.com
  • www.example.com/news
  • www.example.com/news/en/

The following URLs will not match www.example.com:

  • www.example.com.cn/news
  • www.example.org/news/www.example.com

The priorities of URL matching modes are as follows:

Exact matching > suffix matching > prefix matching > keyword matching

For example, URL www.example.com/news first matches www.example.com/news in the following prefix matching rules:

  • Exact matching: www.example.com/news
  • Prefix matching: www.example.com/*
  • Keyword matching: *example*

In the same matching mode, a long matching rule is assigned a higher priority than a short one. For example, URL www.example.com/news/index.html first matches www.example.com/news/* in the following prefix matching rules:

  • www.example.com/news/*
  • www.example.com/*
Translation
Download
Updated: 2019-01-11

Document ID: EDOC1000176006

Views: 129714

Downloads: 312

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next