@@ -144,12 +144,8 @@ http {
       add_header Cache-Control "public";
     }
 
-    location /static
-      alias $PROJECT_ROOT/static/;
-    }
-
-    location /media
-      alias $PROJECT_ROOT/media/;
+    location ~ /(static|media)/(.*)$ {
+        alias $PROJECT_ROOT/$1/$2;
     }
 
     # uWSGI configuration