Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- upstream project {
- server web:8000;
- }
- server {
- listen 80;
- access_log /var/log/nginx/access.log;
- error_log /var/log/nginx/error.log;
- location / {
- proxy_pass http://project;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header Host $host;
- proxy_redirect off;
- }
- location /static/ {
- alias /var/www/django/static/;
- }
- location /media/ {
- alias /var/www/django/media/;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement