Fix escaping of regex metacharacters.
The map directive contains regexes (strings starting with a tilde) that contain 'dot' characters. In a regex, the dot character is a metacharacter and should be escaped by putting a backslash before it.
This commit is contained in:
@@ -28,14 +28,14 @@ map $http_cookie $cookie_no_cache {
|
||||
map $request_uri $uri_no_cache {
|
||||
default 0;
|
||||
"~*/wp-admin/" 1;
|
||||
"~*/wp-[a-zA-Z0-9-]+.php" 1;
|
||||
"~*/wp-[a-zA-Z0-9-]+\.php" 1;
|
||||
"~*/feed/" 1;
|
||||
"~*/index.php" 1;
|
||||
"~*/[a-z0-9_-]+-sitemap([0-9]+)?.xml" 1;
|
||||
"~*/sitemap(_index)?.xml" 1;
|
||||
"~*/wp-comments-popup.php" 1;
|
||||
"~*/wp-links-opml.php" 1;
|
||||
"~*/xmlrpc.php" 1;
|
||||
"~*/index\.php" 1;
|
||||
"~*/[a-z0-9_-]+-sitemap([0-9]+)?\.xml" 1;
|
||||
"~*/sitemap(_index)?\.xml" 1;
|
||||
"~*/wp-comments-popup\.php" 1;
|
||||
"~*/wp-links-opml\.php" 1;
|
||||
"~*/xmlrpc\.php" 1;
|
||||
"~*/edd-sl/*" 1;
|
||||
"~*/add_to_cart/" 1;
|
||||
"~*/cart/" 1;
|
||||
|
||||
Reference in New Issue
Block a user