Affirmative, this fixes the issue. If you keep the website as default website, and turn nginx proxy mode off, it also works. This was my previous workaround. Now I have turned nginx's proxy mode back on, and set the default domain to none and it works.