alias .img.xfoto.com.cn/photo

Brightcells 9 years ago
parent
commit
ca16dc830e
1 changed files with 4 additions and 0 deletions
  1. 4 0
      pai2/uwsgi.bak/pai2_nginx.conf

+ 4 - 0
pai2/uwsgi.bak/pai2_nginx.conf

@@ -21,6 +21,10 @@ server {
21 21
     location /  {
22 22
         alias /home/paiai/work/pai2/media;  # your Django project's media files - amend as required
23 23
     }
24
+
25
+    location /photo  {
26
+        alias /home/paiai/work/pai2/media/photo;  # your Django project's media files - amend as required
27
+    }
24 28
 }
25 29
 
26 30
 # configuration of the server