Permalink
Browse files

The configuration of the nginx is wrong

  • Loading branch information...
1 parent 5dc3309 commit 0029989ea05af8080b5997c56ec63275247242f4 @goinnn goinnn committed Aug 8, 2012
Showing with 2 additions and 6 deletions.
  1. +2 −6 conf/nginx.conf
View
@@ -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

0 comments on commit 0029989

Please sign in to comment.