# Configure Domain

When you create an environment, it comes with a default fireapis domain (e.g., yourproduct.fireapis.com). In this section, you can configure your own domain, such as devapi.yourproduct.com. \
\
With this configuration, all the requests you make can be routed through the domain you've configured for that environment.

{% hint style="info" %}
Even if you have your own domain, the default domain that comes with your environment (e.g., your product.fireapis.com) can still be used.
{% endhint %}

Steps for Configuring a Custom Domain:

1. Click the three dots on the left side of your selected environment under the environment list.

***

<figure><img src="/files/eCjuTjiW6sYb8yGeD9Ut" alt="" width="563"><figcaption><p>Location to configure the domain</p></figcaption></figure>

***

<figure><img src="/files/oOG4BV47DNHwhJYK00PV" alt="" width="563"><figcaption><p>Configure Domain option in the environment menu</p></figcaption></figure>

***

2. You will now see the "**Configure Domain**" popup.

***

<figure><img src="/files/Im7mk0WoOydphq2SWc0Y" alt="" width="563"><figcaption><p>Configure Domain popup</p></figcaption></figure>

***

2. In popup, enter your own domain, which must follow the format of a subdomain ( e.g., *api.yourproduct.com).*
3. Do not use your main domain (e.g., yourproduct.com or fireapis.com). Always use a format like api.yourproduct.com or \*.yourproduct.com, where \* represents a custom name. For best practices on domain configuration for your backend, refer to our guidelines.
4. Once you save your configuration, Now few things needs to done on our side in your DNS provider. Steps will be also be there in the Popup UI itself refer below image.

***

<figure><img src="/files/fgcd072bu94sJuPHfWDB" alt="" width="563"><figcaption><p>DNS configuration with your DNS provider</p></figcaption></figure>

***

6. Open your DNS provider (e.g., Cloudfare, Route53, GoDaddy, Namecheap, etc.) and add the CNAME value with the name and values provided in the popup UI  exactly in your DNS provider.
7. After you add the CNAME record, it may take anywhere from a few minutes to a few hours for the changes to take effect. During this time, you will see "**NOT VERIFIED"** status in the Domain popup.

***

<figure><img src="/files/kHHBv2PdNX5Bwz234uhy" alt="" width="563"><figcaption><p>Verify Connectivity button</p></figcaption></figure>

{% hint style="info" %}
You will have to obtain an SSL certificate for your own domain. The default sub domain (e.g., yourproduct.fireapis.com) will automatically  come with SSL certificates provided by Fireapis.
{% endhint %}

{% hint style="info" %}
Please note that our Server throws errors for the http\:// protocol. Please use https\:// protocol where again https\:// protocol always needs a SSL certificates. You can lean more in getting SSL certificates.
{% endhint %}

8. To verify that your domain configuration is working correctly, manually click the " **Verify Connectivity**" button in the popup UI.&#x20;
9. If the configuration is successful, then the UI will show "**VERIFIED"** status in your domain popup UI.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fireapis.com/the-basics/environment/configure-domain.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
