Loading nginx/nginx.conf +5 −0 Original line number Diff line number Diff line Loading @@ -6,4 +6,9 @@ server { try_files $uri $uri/ =404; autoindex on; } # deny all direct access for these folders location ~* /(.git|cache|bin|logs|backup|tests)/.*$ { return 403; } location ~* ^.+\.(ico|js|gif|jpg|jpeg|png|bmp)$ { expires 30d; } } Loading
nginx/nginx.conf +5 −0 Original line number Diff line number Diff line Loading @@ -6,4 +6,9 @@ server { try_files $uri $uri/ =404; autoindex on; } # deny all direct access for these folders location ~* /(.git|cache|bin|logs|backup|tests)/.*$ { return 403; } location ~* ^.+\.(ico|js|gif|jpg|jpeg|png|bmp)$ { expires 30d; } }