I have 2 domains already working. I recently added a third but can not get access to it. Added the domain to my host, directed to root, same name servers as the other two. It keeps redirecting to my default. What am I doing wrong?

CommentFileSizeAuthor
#7 Capture.PNG23.54 KBesquareddesign

Comments

esquareddesign created an issue. See original summary.

agentrickard’s picture

This is not an actionable report.

esquareddesign’s picture

My default domain is www.SecurityProductsInc.com

I have added www.Cannabis-Security.com

I have set the name servers correctly and the DNS but it still directs to the default. Have I missed something?

agentrickard’s picture

Is it issuing an actual redirect, or just behaving as if it were on the default domain? (Those are two separate behaviors.) Try using the provided "Domain server information" bblock to see how Drupal is processing the request.

The only reason the module would normally issue a redirect is if your new domain is set to "inactive" and the user does not have permission tio access inactive domains.

esquareddesign’s picture

Below is what I get with the "Domain server information" block when i try to go to www.Cannabis-security.com.

Domain server information
Configure
Property Value
HTTP_HOST request www.securityproductsinc.com
Domain match TRUE
domain_id 1
subdomain www.securityproductsinc.com
sitename Security Products Inc
scheme http
valid 1
weight -1
is_default 1
machine_name www_securityproductsinc_com
path http://www.securityproductsinc.com/
site_grant TRUE
aliases

agentrickard’s picture

That suggests a hostfile configuration issue or perhaps a mapping is sites.php if you have one.

Drupal clearly doesn't think the request is coming from www.Cannabis-security.com. That HTTP_HOST request value is coming directly from your server and indicates that the problem lies outside of Domain.

Here's the relevant output code:

    $rows[] = [
      $this->t('HTTP_HOST request'),
      Html::escape($_SERVER['HTTP_HOST']),
    ];
esquareddesign’s picture

StatusFileSize
new23.54 KB

I did a DNS trace and I get the following:

esquareddesign’s picture

agentrickard’s picture

I cannot help you debug DNS. I can only tell you what the code is responding to. Clearly, the HTTP_HOST being passed to Drupal is not what you expect.

agentrickard’s picture

Status: Active » Closed (works as designed)