scripts/uwsgi/nginx/sample-nginx-config
# The upstream component nginx needs to connect to.
upstream django {
server unix:///home/razvan/projects/rosedu/wouso/wouso-razvand-fork.git/wouso.sock; # for a file (UNIX) socket
#server 127.0.0.1:8001; # for a web port (Berkeley) socket
}
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
index index.html index.htm index.nginx-debian.html;
server_name _;
charset utf-8;
client_max_body_size 75M;
location /media/admin {
alias /home/razvan/projects/rosedu/wouso/wouso-razvand-fork.git/sandbox/lib/python2.7/site-packages/django/contrib/admin/static/admin;
}
location /admin-media {
alias /home/razvan/projects/rosedu/wouso/wouso-razvand-fork.git/sandbox/lib/python2.7/site-packages/django/contrib/admin/static/admin;
}
# Django media
location /media {
alias /home/razvan/projects/rosedu/wouso/wouso-razvand-fork.git/wouso/resources/static/img; # your Django project's media files - amend as required
}
location /static {
alias /home/razvan/projects/rosedu/wouso/wouso-razvand-fork.git/wouso/resources/static; # your Django project's static files - amend as required
}
# Finally, send all non-media requests to the Django server.
location / {
uwsgi_pass django;
include /home/razvan/projects/rosedu/wouso/wouso-razvand-fork.git/scripts/uwsgi/uwsgi_params; # the uwsgi_params file you installed
}
}