Browse Source

nginx config update

pull/543/head
friendica 9 years ago
parent
commit
6fb49a4de9
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      mods/sample-nginx.config

+ 5
- 2
mods/sample-nginx.config View 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;


Loading…
Cancel
Save