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
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
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
Trust that most of the Linux VPs partners are using this agile deployment nginx. This day, we will clear the most common PHP rewrite (pseudo static Law ).
WordPress:
Location /{Index index.html index. php;If (-F $ request_filename/index.html
This article introduces to you about Nginx in the rewrite pseudo-static rules of the explanation (detailed), there is a certain reference value, the need for friends can refer to, I hope to help you.
Trust now the big department with the Linux VPS
11.32 PHP Dynamic Expansion Module installationNote: This section operates using PHP7.To view the PHP module:[Email protected] ~]#/usr/local/php/bin/php-mInstalling the Redis moduleRedis is a key-value storage system. Similar to memcached, it
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
Nginx common pseudo-static rules (rewrite)-Discuz X3.2-WordPress-PHPCMS-ECSHOP-SHOPE (convert), nginx-discuz
When we switch from an apache server to an Nginx server, their pseudo-static rules are different. Therefore, you are familiar with the
Trust now the big department with the Linux VPS partner are using this agile spread nginx, this day to liquidate the most common PHP French rewrite (pseudo-static law).Wordpress:Location/{Index index.html index.php;if (-f $request
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.