# Error configuring custom domain to a canister

**URL:** <https://forum.dfinity.org/t/error-configuring-custom-domain-to-a-canister/20435>\
**Category:** Developers\
**Created:** [June 4, 2023, 9:45am UTC](https://forum.dfinity.org/t/error-configuring-custom-domain-to-a-canister/20435 "2023-06-04T09:45:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [June 4, 2023, 10:10am UTC](https://forum.dfinity.org/t/error-configuring-custom-domain-to-a-canister/20435/2 "2023-06-04T10:10:45Z")

</div>

> [@iamenochchirima](#):
>
> My guess is that maybe I put the .well-known directory and the  
> .ic-assets.json at wrong places.

Looks like indeed your [https://j62gc-2iaaa-aaaal-qbynq-cai.icp0.io/.well-known/ic-domains](https://j62gc-2iaaa-aaaal-qbynq-cai.icp0.io/.well-known/ic-domains) file is not available.

Have recently answered a question about where to put the file, maybe you find something there?

> [@Custom Domain: Where should the .well-known directory be?](https://forum.dfinity.org/t/custom-domain-where-should-the-well-known-directory-be/20293/2):
>
> I’m using dfx for a custom domain in a single project only (in Juno this particular question is certified and handled automatically) and I’ve got the following configuration. In my app’s static asset folder, there is a single .ic-assets.json file. You can find an example here: [link](https://github.com/buildwithjuno/juno/blob/main/src/frontend/static/.ic-assets.json). Note that for SvelteKit, the folder is named static while with the React starter kit, it might be called assets (e.g., ./src/frontend/assets/). The .well-known directory is a sub-directory of the static assets …

---

_[View the full topic](https://forum.dfinity.org/t/error-configuring-custom-domain-to-a-canister/20435)._
