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 -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

model view controller - MVC Rails Planning -