From 6fb49a4de98c1fff98ce6af3b276b7b92ec89a30 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 12 Dec 2012 19:44:59 -0800 Subject: [PATCH] nginx config update --- mods/sample-nginx.config | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mods/sample-nginx.config b/mods/sample-nginx.config index abd40c573f..843b4b7169 100644 --- a/mods/sample-nginx.config +++ b/mods/sample-nginx.config @@ -55,13 +55,16 @@ server { rewrite ^/(.*) /index.php?q=$1 last; } - # statically serve these file types + # statically serve these file types when possible + # otherwise fall back to front controller # allow browser to cache them # added .htm for advanced source code editor library - location ~* \.(jpg|jpeg|gif|png|css|js|ico|htm)$ { + location ~* \.(jpg|jpeg|gif|png|css|js|ico|htm|html)$ { expires 30d; + try_files $uri /index.php?q=$uri&$args; } + # block these file types location ~* \.(tpl|md|git|tgz) { deny all; -- 2.39.5