Nginx in the use of pseudo static is directly in the nginx.conf write rules, do not need to be like Apache to open the Write module (mod_rewrite) in order to perform pseudo static.
Nginx only need to open the nginx.conf configuration file, write
Recently, I tried to configure and install a website on VPs. VPs installed lnmp (Linux + nginx + MySQL + PHP) and often encountered some problems during rule resetting, directly using Apache rules to nginx does not work. In the past, Apache rewrite
The use of pseudo-static in nginx directly writes rules in nginx. conf, and does not require pseudo-static operations like apache to enable the write module (mod_rewrite.Nginx only needs to open the nginx. conf configuration file and write the
Http://www.cnblogs.com/analyzer/articles/1377684.html ] Standard turn from: http://blog.c1gstudio.com/archives/434 Recommended reference Address:Mailing List ARChives Official discussion areaHttp://marc.info/?l=nginx Nginx Common Application
Nginx-rewrite regular expression matching
Case matching
~ to match case sensitivity~* for case-insensitive matching!~ and!~* are case insensitive and case-insensitive mismatches, respectively.
File and directory matching
-F and!-f are used to
In previous articles, we have discussed several main aspects of URL Rewrite. In the last article of this series, we will discuss some details and features about different levels of URL Rewrite.
Theoretically, IIS-level URL Rewrite is written in C
Regular expression matches, where:
* ~ to Match case sensitivity
* ~* matching for case-insensitive case
*!~ and!~* are case insensitive and case-insensitive mismatches, respectively
File and directory matching, where:
*-F and!-f are used to
This station a server originally is the Windows system, uses the Isapi_rewrite to carry on the URL rewriting, has one rule is
Rewriterule ^/(. { 6}) (\d{3}) (. +)/php/http://www.xxx.com/qq$2.apk [Nc,l,nu]
In the middle of the use of {6} refers to
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.