]> git.mxchange.org Git - friendica.git/commitdiff
nginx config update
authorfriendica <info@friendica.com>
Thu, 13 Dec 2012 03:44:59 +0000 (19:44 -0800)
committerfriendica <info@friendica.com>
Thu, 13 Dec 2012 03:44:59 +0000 (19:44 -0800)
mods/sample-nginx.config

index abd40c573f3299488caab398c5f7c1e2a32382bc..843b4b7169f798da58830335f3b86713aa2395d7 100644 (file)
@@ -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;