Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By HeneryH on
Anyone know where this url with the http prefix is set? I can't find it in my settings file or in any of the config pages.
Comments
Your webserver configuration
The automatic redirect to an URL secured with Transport Layer Security (TLS) is set in the configuration for your webserver (e.g. Apache2).
- gisle
We aren't on the same page
We aren't on the same page here...
That Drupal Config Page screen is setting the default homepage for the Drupal instance. See the attached image.
It is clearly pulling a base URL from somewhere and it is pulling the http flavor.
Do you know where that base url is getting its value from?
Sorry about missing the mark
I'll try: again: If you're asking about the part of the string that is not editable (i.e. "http:/www.[redacted].[redacted]" in your screenshot. This is what the code looks like:
I'm not sure that this is what you're asking about, but it is my best shot.
I suspect it is pulling in the global
$base_url
. See the API: https://api.drupal.org/api/drupal/core%21globals.api.php/global/base_url/10.- gisle
Yes, that is what I am asking
Yes, that is what I am asking. Odd that I would need to use some API to modify that on a straight up initial build.
I am running an Nginx reverse
I am running an Nginx reverse proxy that does my certificates and that is set up to proxy to port 80...
So, maybe by the time Drupal detects the URL it is only sensing the http flavor that was proxy_passed to it.
I think I fixed it by
I think I fixed it by tweaking my nginx reverse proxy server block