# How do I connect my own domain to my server?

https://www.seturack.com/en/knowledgebase/article/how-to-connect-your-own-domain

1. Get your server's address from the **IP Address** row on the panel's **Overview** tab.
2. In the DNS settings where you bought your domain, create an **A record**. For the name, use `@` for the main domain or a subdomain such as `www`. For the value, enter the IP address.
3. Wait for the DNS change to spread. This can take a while.
4. Follow the steps below for your app.

## HTTPS setup for web apps

Most ready-made apps with a web interface (such as WordPress, WooCommerce and Nextcloud) run behind Caddy, which handles HTTPS. You also need to add the new address to Caddy. [Connect with SSH](https://www.seturack.com/en/knowledgebase/article/how-to-connect-with-ssh) and, in your app's folder such as `/opt/seturack/wordpress`, open `caddy/Caddyfile`. Add your domain to the first line:

`203-0-113-5.sslip.io, example.com {`

If your site address starts with `http://`, change the first line to `example.com {` instead. Then run this in the same folder. Caddy gets the certificate by itself:

`docker compose exec caddy caddy reload --config /etc/caddy/Caddyfile --adapter caddyfile`

## The remaining step for each app

| App | What to do |
| --- | --- |
| WordPress, WooCommerce | Under **Settings > General**, change both address fields to the new address. |
| Nextcloud | In the folder's `.env` file, change `SITE_URL`, `SITE_HOST` and `SITE_ADI`, then run `docker compose up -d`. Add the new address to Nextcloud's trusted domains. |
| WireGuard | Nothing else. The VPN connection keeps working by IP address. |
| TeamSpeak | Nothing changes on the server. Just type the domain instead of the IP. |
| Hosting panels (cPanel, Plesk, HestiaCP and similar) | Add the domain in the panel's add-site screen. The panel gets the certificate. |
| Other web apps | Change the app's own address setting too. You'll find where it is in the app's help article and in the questions on its page. |
| Docker, clean OS | Add it to the settings of the web server you installed. |

If you get stuck, [contact support](https://www.seturack.com/en/knowledgebase/article/how-to-contact-support).
