Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@strarsis
Copy link
Contributor

@strarsis strarsis commented Nov 23, 2024

This PR adds a fastcgi_param line to wordpress site configuration to ensure that SERVER_NAME FastCGI (PHP) variable is set to $host. This is important as the included default fastcgi_params set SERVER_NAME to $server_name which is set (arbitrarily) to one of the matching hostnames of a site, but not the actual matching one.
Fixes #1550.

@swalkinshaw
Copy link
Member

Thanks @strarsis

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PHP SERVER_NAME not passed correctly for multiple canonical domains

2 participants