Ok found it. Sorry. server_name_in_redirect off; did the trick.by slafs - Nginx Mailing List - English
Hi there! I have a question about nginx configuration file. How can I configure a server if I want my site to be available under a domain name and IP address. I would like to have something like: http(s)://myhost.mydomain/foo/ and http(s)://XXX.XXX.XXX.XXX/foo/ to be available simultaneously. I noticed that it basically works but problem occurs on redirections from my webapp (Nginx is aby slafs - Nginx Mailing List - English