nginx——location

The function of the location instruction is to execute different applications according to the uri requested by the user. In short, it is to match the website URL requested by the user. If the match is successful, the relevant operation will be performed.

location syntax
    location [ = | ~ | ~* | ^~ ] uri { }

        uri can be either an ordinary string address path, or a regular expression. If the match is successful, the relevant instructions in the curly brackets will be executed. The regular expression can also be preceded by "~" (indicating case sensitivity) or "~*" " (case insensitive) and other special characters. You can also use the logical operator "!" to negate the above match, namely "!~" and "!~*" fsa

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324997591&siteId=291194637
Recommended