Skip to content

uri->getHost() #815

Description

@nowackipawel

I'm trying to get host name from class which implements FilterInterface...
In before() method I'm using RequestIterface to get hostname:

I've got in $_SERVER array:
SERVER_NAME: www.domain.com
HOST_NAME: adm.domain.com

so I thought host returned by ->getHost() will be adm.domain.com but it is www.domain.com instead...

I'm using php7.1.11 and the newest nginx.
Nginx is configured with multiple names of server_name for the same directory.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions