From: Andreas Neustifter Date: Thu, 28 Jun 2018 04:41:27 +0000 (+0000) Subject: [nginx] Readd option to statically server pictures. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cb600b5a5fead1ef30b36d493210e3e8ef5d6b90;p=friendica.git [nginx] Readd option to statically server pictures. --- diff --git a/mods/sample-nginx.config b/mods/sample-nginx.config index 0b96f50ba7..7bf8a1f105 100644 --- a/mods/sample-nginx.config +++ b/mods/sample-nginx.config @@ -105,6 +105,14 @@ server { deny all; } + # 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|ico|css|js|htm|html|ttf|woff|svg)$ { + # expires 30d; + # try_files $uri /index.php?pagename=$uri&$args; + #} + # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # or a unix socket location ~* \.php$ {