Skip to content
This repository has been archived by the owner on Feb 23, 2019. It is now read-only.

AWS CloudFront Distribution domain name mismatch error #567

Open
Justinas-Jurciukonis opened this issue Apr 5, 2018 · 0 comments
Open

Comments

@Justinas-Jurciukonis
Copy link

When using AWS CloudFront and having >1 distribution to same bucket (different paths) domains check will throw Error: Distribution domain name mismatch.

It's located in file CdnEngine_S3_Cf.php@319

Content of @$this->_s3->listDistributions()

{
  ["XX1"]=>
  array(12) {
    ["id"]=>
    string(14) "XX1"
    ["status"]=>
    string(8) "Deployed"
    ["time"]=>
    int(1522916493)
    ["domain"]=>
    string(28) "domain.cloudfront.net"
    ["enabled"]=>
    bool(true)
    ["type"]=>
    string(2) "s3"
    ["origin"]=>
    string(31) "my-cdn.s3.amazonaws.com"
    ["originAccessIdentity"]=>
    NULL
    ["defaultRootObject"]=>
    NULL
    ["cnames"]=>
    array(0) {
    }
    ["trustedSigners"]=>
    array(0) {
    }
    ["comment"]=>
    NULL
  }
  ["XX2"]=>
  array(12) {
    ["id"]=>
    string(13) "XX2"
    ["status"]=>
    string(8) "Deployed"
    ["time"]=>
    int(1522919446)
    ["domain"]=>
    string(29) "domain.cloudfront.net"
    ["enabled"]=>
    bool(true)
    ["type"]=>
    string(2) "s3"
    ["origin"]=>
    string(31) "my-cdn.s3.amazonaws.com"
    ["originAccessIdentity"]=>
    string(48) "origin-access-identity/cloudfront/XX2"
    ["defaultRootObject"]=>
    NULL
    ["cnames"]=>
    array(0) {
    }
    ["trustedSigners"]=>
    array(0) {
    }
    ["comment"]=>
    NULL
  }
}

Here XX1 is linking to my-cdn.s3.amazonaws.com/live while XX2 is linking to my-cdn.s3.amazonaws.com/development.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant