From 08a8d69be25f05e6894e08f2d64ac2ae14fba11e Mon Sep 17 00:00:00 2001 From: rzimin Date: Thu, 12 Mar 2015 13:34:46 +0300 Subject: [PATCH] Serve images as static files Ensure images are served as static files when using Nginx --- nginx.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nginx.conf b/nginx.conf index 22f7acd56..12a48054a 100644 --- a/nginx.conf +++ b/nginx.conf @@ -25,6 +25,10 @@ http { index index.php; if (!-e $request_filename){ rewrite ^(.*)$ /index.php last; } } + + location /images/ { + # Serve images as static + } location /user { rewrite ^/user/accounts/(.*)$ /error redirect;