]> git.mxchange.org Git - friendica.git/commitdiff
[nginx] Readd option to statically server pictures.
authorAndreas Neustifter <andreas.neustifter@gmail.com>
Thu, 28 Jun 2018 04:41:27 +0000 (04:41 +0000)
committerAndreas Neustifter <andreas.neustifter@gmail.com>
Mon, 9 Jul 2018 10:42:32 +0000 (12:42 +0200)
mods/sample-nginx.config

index 0b96f50ba795b0b1f3253e9d662a2076b9dd7c6e..7bf8a1f1050527e20276e6b9527eacb253662a6d 100644 (file)
@@ -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$ {