From e772e7f86c2505aecd88e27cf0ce3dd54e2bd8a8 Mon Sep 17 00:00:00 2001 From: Nitun Date: Mon, 2 Sep 2013 18:25:40 +0530 Subject: [PATCH] Fixed regrex For example url contain http://example.com/abc-star which was returning nginx 404 page instead of WordPress page. --- etc/nginx/common/locations.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/nginx/common/locations.conf b/etc/nginx/common/locations.conf index 84cf1963..d580c145 100644 --- a/etc/nginx/common/locations.conf +++ b/etc/nginx/common/locations.conf @@ -14,7 +14,7 @@ location = /robots.txt { } # Cache Static Files For As Long As Possible -location ~* .(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|css|rss|atom|js|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ { +location ~* \.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|css|rss|atom|js|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ { access_log off; log_not_found off; expires max;