nginx rewrite pseudo-static configuration parameters and use examples with regular usage instructions
regular expression matching, where:
* ~ for case-sensitive matching
file And directory matching, where:
* -f and !-f are used to determine whether a file exists
flag marked with:
* last Equivalent to the [L] tag in Apache, indicating completion of rewrite
Some of the available global variables, Use conditional judgment (to be completed)
$args
Example of combining QeePHP
if (!-d $request_filename) {
multiple directory transformed into parameters abc.domian.com/sort/2 = & gt; abc.domian.com/index.php ?act=sort&name=abc&id=2
if ($host ~* (.*)\\.domain\\.com) {
directory swapping /123456 /xxxx - & gt; /xxxx id = 123456
rewrite ^ /(\\ d +) ///$ 2 id = $ 1 last;
, for example, the following? (+)? Set nginx to redirect to /nginx-ie in the user's use of ie:
if ($http_user_agent ~ MSIE) {
automatic directory & ldquo; /& rdquo;
if (-d $ request_filename) {
prohibit htaccess
location ~ /\\ ht {
<. li> deny all;
prohibit multiple directories
location ~ ^ /(cron |
Templates/////////////multi-level directory and the like at the request .log.txt;
location ~ ^ /data {
can not prevent a single directory prohibits .log.txt can request
location /searchword/cron/{
Although Linux systems are much more secure than Windows, some simple security co
Phenomenon: Suddenly found that access to the website is very slow, the servers c
Problem: The operating system of the LAN server is Windows Server 2003. When brows
Problem Description The R525 G2 machine serial port interface is in the form
Apache opens Gzip and Expires to improve page load speed
Ban web and other directories to execute exe, bat, com methods
Remote Desktop Connection Transfer File Graphic Tutorial
What does idc mean and what services does idc contain?
FreeBSD shutdown restart command
IIS URL Rewriting Rewrite Filter Setting Method Introduction
The difference between a common server cabinet and an advanced server cabinet
IIS7.0 FTP can not be accessed to solve
IIS server to do 301 permanent redirection settings explain
Little-known Win8 system PIN creation skills
How to delete system stubborn files (1)
Microsoft Vice President talks about Win10 Enterprise Edition: Better use, more secure
Windows 7 System Office Tips: Location-Aware Printing
Win7 system web page open slow how to do
Teach you to learn the old guy
Windows server 2008 R2 upgrade to windows 2012 migration Alwayson AG method
Simple steps to clean up the Win8 application cache
Use as flying to let you 3 seconds into a Windows 7 command master