yii2: Not correct host handling with multiple nginx

If nginx is installed before nginx, then I will get an incorrect redirect. I don’t know the exact location of the problem yet, but it reproduces when updating to 2.0.46-dev

example.com -> example.com:8080

Playable when used k8s, openshift, docker

What steps will reproduce the problem?

install 2.0.46-dev

What is the expected result?

Get the original domain

What do you get instead?

get a domain with a port

Additional info

Q A
Yii version 2.0.46-dev
PHP version 8.0.16
Operating system Debian

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 2
  • Comments: 16 (15 by maintainers)

Most upvoted comments

I propose to roll back temporarily

@bizley maybe.

@s1lver is it possible to put together a unit test that reproduces the issue with current master?

I will try to do this

@bizley, maybe the header is being ignored as untrusted, see this test