upstream django-backend
{
server testsite.local:4080;
}
server {
listen 80;
server_name testsite.com;
location /{
proxy_redirect http://testsite.local:4080/ http://$host/;
proxy_set_header X-REAL-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_connect_timeout 5;
proxy_send_timeout 15;
proxy_read_timeout 60;
proxy_set_header Host "testsite.local:4080";
proxy_pass http://django-backend;
}
location /static {
alias /home/vasil/Projects/django-test/djangoproject/static;
}
}
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to django-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
>
>