SERVER_NAME instead of HTTP_HOST
-
Hi
We’re testing your plugin for a possible website we are going to develop.
We found a problem with our configuration (nginx and php-fpm).
When you define domain in your plugin you are using SERVER_NAME as its value.
SERVER_NAME with this configuration is not the same as HTTP_HOST, so the plugin is not working.
We have changed it to get the SERVER_NAME from HTTP_HOST that it’s what the user is really loading in its browser.
With this line in wp-config.php it’s working well
$_SERVER['SERVER_NAME'] = $_SERVER['HTTP_HOST'];
Do you think it’s interesting changing it in your plugin?
Best regards and thanks for your plugin!
Fernando
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘SERVER_NAME instead of HTTP_HOST’ is closed to new replies.