Closed Pascalmh closed 4 years ago
As we had this error we tried to get around it by setting c::set('url', Url::scheme() . '://' . $_SERVER['HTTP_HOST']);
in the config.php - this fixed it almost everywhere except for the Pagination in the Panel which still had the wrong host.
To be honest I'm not sure about this. _
is just an example of a "catch-all" server name according to the nginx docs. We will need a more general solution for this (for example by checking if the host we got from the env is actually a valid hostname, but that might have its own issues).
We will take a closer look at this later.
This adds support for this Docker Image: https://hub.docker.com/r/richarvey/nginx-php-fpm/