# tamron_nginx.conf # the upstream component nginx needs to connect to upstream tamron { # server unix:///home/paiai/work/tamron/tamron/uwsgi/tamron.sock; # for a file socket server 127.0.0.1:8888; # for a web port socket (we'll use this first) } # configuration of the server server { # the port your site will be served on listen 80; # the domain name it will serve for server_name .tamron.xfoto.com.cn; # substitute your machine's IP address or FQDN charset utf-8; # max upload size client_max_body_size 75M; # adjust to taste # Django media location /media { alias /home/paiai/work/tamron/media; # your Django project's media files - amend as required } location /static { alias /home/paiai/work/tamron/collect_static; # your Django project's static files - amend as required } # Finally, send all non-media requests to the Django server. location / { # uwsgi_pass tamron; proxy_pass http://tamron; include /home/paiai/work/tamron/tamron/uwsgi/uwsgi_params; # the uwsgi_params file you installed } }