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

ruby on rails - Devise Logout Error in RoR -

model view controller - MVC Rails Planning -

php - Working with pretty urls on apache and fastcgi after hhvm installation -