From 3f5634110a26515e5aa3d46d754fee390bff2bec Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Fri, 7 Nov 2014 00:41:07 +0300 Subject: [PATCH] roles/nginx: Add comment about try_files for serving static files from disk Signed-off-by: Alan Orth --- roles/nginx/templates/wordpress.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/nginx/templates/wordpress.j2 b/roles/nginx/templates/wordpress.j2 index ddc99f8..4d87b6c 100644 --- a/roles/nginx/templates/wordpress.j2 +++ b/roles/nginx/templates/wordpress.j2 @@ -1,6 +1,7 @@ # try for WordPress index.php in / # fall back to index.php + args (passed to php5-fpm later) + # also serves static files from the disk instead of passing to interpreter, location / { try_files $uri $uri/ /index.php?$args; }