# How to Update an Environment from One Domain to Another

### Steps to Follow

1. Create an SSL certificate for the new domain and update it in the Nginx server. Also, ensure DNS mapping is completed for the new domain.
2. Create a new Gateway for the new domain in the existing environment, and delete the old one.
3. Go to **Apps**, then **Edit** and **Upgrade** the application where you need to update the new domain.
4. Update the new domain name wherever required by removing all references to the old domain name.
5. Update the client names according to the new domain.
6. Ensure the correct **Client ID** and **Client Secret** are configured while upgrading.
7. Click **Next** and proceed to upgrade the application.
8. After the upgrade, verify all **Virtual Services** to ensure the new domain name is updated correctly.
9. Manually update the domain configuration in **Odoo UI** wherever old URLs were configured.

The below screenshot is for reference, showing how the domain name was changed from **nissa** env to **zanzibar** en&#x76;**.**

<figure><img src="/files/G9nql7zjeMPeElwTJu7N" alt=""><figcaption></figcaption></figure>

#### <br>


---

# 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.openg2p.org/operations/deployment/deployment-guide/how-to-update-an-environment-from-one-domain-to-another.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.
