Basic syntax The code is as follows:Copy code Location [= | ~ | ~ * | ^ ~] /Uri /{... } = Strict match. If the query matches, the search is stopped and the request is processed immediately.~ Case-sensitive matching~ * Case-insensitive match!~
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
Web site Program URL Camouflage method, server-side fee plug-in method and Isapi-rewrite rules filtering method, consider their own web site structure and wallet difficult problems, finally chose the latter, that is now popular used to do pseudo
First, create a directory E:rewrite
Upload the four files (Httpd.ini, httpd.parse.errors, Mtbnotif.dll, Rewrite.dll) under the Rewrite.
Second, set the IIS properties, select Web Site Properties, to the ISAPI filter,
Closes the Properties dialog
12.13 Nginx anti-theft chainThe configuration is as follows and can be combined with the above configuration.location ~* ^.+\.(gif|jpg|png|swf|flv|rar|zip|doc|pdf|gz|bz2|jpeg|bmp|xls)${ expires 7d; valid_referers none blocked server_names
NginxConfiguration
Virtual Host[Sorting] ultra-detailed
11:58:13 | category:Linux Service Security | font size subscription
NginxFirst, it determines which server handles a request.
That is, the host value we see when we open httpwatch.
Server
This guide gives a basic introduction to Nginx and describes some simple tasks, the can is done with it.This wizard gives a basic introduction to Nginx and some simple tasks of how to work with Nginx.It is supposed this nginx is already installed on
The following operations may be objectionable to users. If a visitor wants to save an image on your page, what is the user experience.
Implementation steps:1. Download the free version of the ISAPI rewrite software provided by the famous
This section describes how to start and stop Nginx, reload configuration, configuration file structure, how to configure Nginx to allocate static content, how to configure Nginx as a proxy server, how to associate with the FASTCGI program.Nginx
Syntax rules: location [=|~|~*|^~]/uri/{...}= Start with exact match^~ begins by indicating that the URI begins with a regular string and is understood to match the URL path. Nginx does not encode the URL, so the request is/STATIC/20%/AA, which can
This guide gives a basic introduction to Nginx and describes some simple tasks, the can is done with it. It is supposed this nginx is already installed on the reader's machine. If It isn't, see the Installing Nginx page. This guide describes how to
Ubuntu apache anti-Leech method first enable apache's rewrite function: sudovi/etc/apache2/sites-available/default modify the following OptionsFollowSymLinksAllowOverrideNone (modified to AllowOverrideAll... the ubuntu apache anti-Leech method first
Beginner ' s Guide
This is guide gives a basic introduction to Nginx and describes some the simple tasks so can do with it. It is supposed that nginx are already installed on the reader ' s machine. If It is not, the installing Nginx page. This is
Turn from: http://nginx.org/en/docs/beginners_guide.html
This is guide gives a basic introduction to Nginx and describes some the simple tasks so can do with it. It is supposed that nginx are already installed on the reader ' s machine. If It is not,
First, create a directory E:rewrite
Upload the four files (Httpd.ini, httpd.parse.errors, Mtbnotif.dll, Rewrite.dll) under the Rewrite.
Second, set the IIS properties, select Web Site Properties, to the ISAPI filter,
Closes the Properties dialog
Nginx cache acceleration steps are as follows
One, add moduleThe Nginx cache shared by this article requires additional compilation of ngx_cache_purge modules. As for the download module, recompile will be said later.Second, nginx configurationTo
Method One:
The required commands are as follows:
The code is as follows
Copy Code
Rewriteengine onRewritecond%{Http_referer}!^$Rewritecond%{http_referer}!^http://(www.)? 111cn.net/.*$ [NC]Rewriterule. (GIF &line;jpg) $-
Because in a foreign space under the root folder to see this. htaccess, do not know what is doing, in the outdated forum to find an article, first turn to put, and then slowly study, hey.Apache guide:. htaccess files
The. htaccess file provides a
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.