Django don't get the good URI when using nginx -



Django don't get the good URI when using nginx -

when using nginx proxy request, django go on believe site url 127.0.0.1:myport.

add settings.py:

use_x_forwarded_host = true

it tell django utilize x-forwarded-host header nginx pass.

django nginx gunicorn

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -