1

My website URL shows in browser https

But on https://test.com/admin/config/system/site-information

enter image description here

It's showing http.

What will be cause of this? Server configuration (apache)?

Does it relate to Base URL?

0

Yes. The field prefix is populated by the RequestContext:: getCompleteBaseUrl() method, the underlying property, completeBaseUrl, is assigned from $GLOBALS['base_url'] if it's set.

You'll have to test that out to see if that's the case for you, because you might have a web stack configuration that causes Drupal only to see unencrypted requests (e.g. HTTPS only handled at your load balancer / proxy server level), thus displaying the HTTP base.

  • We r not setting $GLOBALS['base_url']. What can be solution? – Test May 15 '18 at 9:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.