Jump to content

$config->urls->root and $config->httpHost Empty


MadHatter
 Share

Recommended Posts

The domain is listed in the $config->httpHosts array. Does the domain need to be speicified for it to be callable via $config->urls? I was under the impression that it was pulled automagically from $_SERVER environment variables.

Link to comment
Share on other sites

Sorry, in a rush, but I think you are correct - I think it's coming from: $_SERVER['HTTP_HOST']

https://github.com/ryancramerdesign/ProcessWire/blob/7b9730d43e6eda8bd27841a4811a1b9737bfe903/index.php#L41

I wonder if Ryan should add a backup check for $_SERVER['SERVER_NAME'] if host return nothing.

Can you confirm what $_SERVER['HTTP_HOST'] is actually returning?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...