Skip to content

$_SERVER['HTTP_HOST'] doesn't exist when requesting via HTTP/3 on nginx #13021

@LIXiangChen

Description

@LIXiangChen

Description

I'm using nginx 1.25.3 + PHP 8.3.0.

When requesting via HTTP/2, I can get $_SERVER['HTTP_HOST'] correctly. But when requesting via HTTP/3, HTTP_HOST doesn't exist in the array.

Will PHP officially fix this? Is there any other solution besides replacing HTTP_HOST with SERVER_NAME?

PHP Version

PHP 8.3.0

Operating System

Debian 12.2 64-bit

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions