# Changing The Panel Domain For Pterodactyl

<p class="callout warning"><span style="color: rgb(0, 0, 0);">This guide will be using CloudFlare with nginx installed on the server, with the record proxied using port 8443 for the daemon and SFTP requiring an IP connection instead of the hostname. If this doesn't make sense, ask.</span></p>

<span style="color: rgb(0, 0, 0);">Login to your DNS and firstly update the A record to what you wish it to be. For example, I am changing the domain from **manage.** to **panel.** </span>

<span style="color: rgb(0, 0, 0);">**![](https://jasmeow.pics/K1p7Zq.gif)**</span>

<span style="color: rgb(0, 0, 0);">Then SSH into your system and go to **/etc/nginx/sites-enabled** and update the **pterodactyl.conf** with your new domain. Easiest way is by nano'ing into it, doing Ctrl + \\ (Backslash), typing in "manage." then replacing with "panel." like I did below in the GIF. I then did Ctrl + X, Y then Enter.</span>

<span style="color: rgb(0, 0, 0);">![](https://jasmeow.pics/AjRIPm.gif)</span>

<span style="color: rgb(0, 0, 0);">Your next step is restarting nginx, **systemctl restart nginx**. Now head into **/var/www/pterodactyl** and update the .env file with the new domain under the **APP\_URL** option.</span>

<span style="color: rgb(0, 0, 0);">![](https://jasmeow.pics/Zlv40E.gif)</span>

<span style="color: rgb(0, 0, 0);">Now head to your panel, in our case *panel.jasmeow.systems* and login with the same credentials you had previously, everything is the same. Go to the Admin side &gt; Nodes &gt; Click the node &gt; Settings tab. Update the domain in the FQDN box as shown below, make sure your daemon port is 8443 (Or one of the [CloudFlare's HTTPS ports](https://developers.cloudflare.com/fundamentals/reference/network-ports/)) and click "Save Changes" in the bottom right.</span>

<span style="color: rgb(0, 0, 0);">![](https://jasmeow.pics/JFs4Vo.gif) ![](https://jasmeow.pics/y0RIax.png) ![](https://jasmeow.pics/XAP45n.png)</span>

<span style="color: #000000;">Head to the configuration tab and click Generate Token. Pop back into SSH and paste it in, allowing the overwrite.</span>

<span style="color: rgb(0, 0, 0);">![](https://jasmeow.pics/0LMtAE.png) ![](https://jasmeow.pics/8sFRCL.png)</span>

<span style="color: rgb(0, 0, 0);">![](https://jasmeow.pics/289WrA.png)</span>

<span style="color: rgb(0, 0, 0);">Restart wings with **systemctl restart wings** - You are all done and wings should now come back online with a green heart. Not come online? Check the status of wings and solve the error or reach out for assistance.</span>

<span style="color: rgb(0, 0, 0);">![](https://jasmeow.pics/vMhmQU.png)</span>