Skip to content

Subdomains

Mubeen142 edited this page Feb 20, 2022 · 3 revisions

What are subdomains?

Subdomains allow users to set a domain for their server to connect through. In traditional Pterodactyl, users have to conenct through a IP-address to their server, for example 123.456.78:26623 - Subdomains allow your users to connect to their server with a simple domain, for example woodmc.panel.net You can add as many domains as you wish, the user can select their preffered one through a dropdown menu. You can also configure subdomains per plan in the plan admin settings.

Configuring Subdomains

Note: The subdomain feature only works with CloudFlare.

  1. Install SDK: cd /var/www/pterodactyl && composer require cloudflare/sdk
  2. Head to Admin area -> Billing -> Domain -> API Settings -> Create New
  3. Enter the details:
    • Account Email: Your CloudFlare Email Address
    • Domain: The domain you want to use, such as example.com don't include https
    • Zone ID: Cloudflare Dashboard -> Select Domain -> Zone ID (Located Bottom Right)
    • Global API Key: Can be found here: https://dash.cloudflare.com/profile/api-tokens
  4. You're good to go
Clone this wiki locally