I'm using django, nginx and apache. After I access my website having a URL (e.g., http://www.foo.com/) what seems during my browser address may be the Ip with admin appended (e.g., http://18.104.22.1680/admin/). After I access the website by IP, it's rerouted not surprisingly by django's web addresses.py (e.g., http://22.214.171.1240/ -> http://126.96.36.1990/accounts/login/?next=/)
I must possess the title URL act exactly the same way because the IP. Where must i be searching to achieve this?
Have you got virtual domain names?
If that's the case, your domain title as well as your ip might be offered in a different way.