Hi Tim,
I am not sure what is happening on the Server of the provider. I attend to run everything under a https (for a more secure) connection.
Here are the server details. Let me know if this is of any use?
Is can see that the [“HTTP_X_FORWARDED_PROTO”] is ‘https’ but the [“REQUEST_SCHEME”] is ‘http’ and the [“SERVER_PORT”] is ‘80’.
Don’t understand how I have to ‘read’ this combination of data and is this okay or wrong?
P.s. as Kalvn suggested in this ([SOLVED] Twig base_url() returns port 80 when used over HTTPS connection) topic it would not be handy to adjust code in the external libraries.
Although the issue is properly the combination of the server and the $request->getUri()->getBaseUrl();
function.
Is it possible to adjust this code for the (future) Slim libaries or perhaps some extra code to bypass this in the bootstrap\app.php instead? (don’t fully understand what is happening at the server side).
array(45) {
["PATH"]=> string(28) "/usr/local/bin:/usr/bin:/bin"
["HTTP_ACCEPT"]=> string(63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" ["HTTP_ACCEPT_ENCODING"]=> string(17) "gzip, deflate, br"
["HTTP_ACCEPT_LANGUAGE"]=> string(23) "nl,en;q=0.7,en-US;q=0.3"
["HTTP_CONNECTION"]=> string(10) "keep-alive"
["CONTENT_LENGTH"]=> string(1) "0"
["HTTP_COOKIE"]=> string(36) ""
["HTTP_HOST"]=> string(19) "www.domain.com"
["HTTP_USER_AGENT"]=> string(78) ""
["HTTP_DNT"]=> string(1) "1"
["HTTP_UPGRADE_INSECURE_REQUESTS"]=> string(1) "1"
["HTTP_X_FORWARDED_PROTO"]=> string(5) "https"
["HTTP_X_CLIENT_IP"]=> string(14) ""
["HTTP_X_CLIENT_PORT"]=> string(5) ""
["REDIRECT_UNIQUE_ID"]=> string(27) ""
["REDIRECT_HTTPS"]=> string(2) "on"
["REDIRECT_STATUS"]=> string(3) "200"
["UNIQUE_ID"]=> string(27) ""
["HTTPS"]=> string(2) "on"
["SERVER_SIGNATURE"]=> string(0) ""
["SERVER_SOFTWARE"]=> string(8) "Apache/2"
["SERVER_NAME"]=> string(19) "www.domain.com"
["SERVER_ADDR"]=> string(11) ""
["SERVER_PORT"]=> string(2) "80"
["REMOTE_ADDR"]=> string(14) ""
["DOCUMENT_ROOT"]=> string(52) ""
["REQUEST_SCHEME"]=> string(4) "http"
["CONTEXT_PREFIX"]=> string(0) ""
["CONTEXT_DOCUMENT_ROOT"]=> string(52) ""
["SERVER_ADMIN"]=> string(25) ""
["SCRIPT_FILENAME"]=> string(62) ""
["REMOTE_PORT"]=> string(5) ""
["REDIRECT_URL"]=> string(5) "/test"
["SERVER_PROTOCOL"]=> string(8) "HTTP/1.1"
["REQUEST_METHOD"]=> string(3) "GET"
["QUERY_STRING"]=> string(0) ""
["REQUEST_URI"]=> string(5) "/test"