Creating a Reverse Proxy
This guide will help you to create a reverse proxy.
Last updated
This guide will help you to create a reverse proxy.
Last updated
Hey there MinecraftGamers! 👋
In this guide, we will go over how to create a reverse proxy for your Minecraft server!
:::warning Reverse proxies can only be used for web connections (eg. HTTPS). If you wan't to join your minecraft server using your domain, check this page ::: :::note For this guide, you must have access to a domain and the ability to alter that domain's DNS settings. For this guide, we assume you have a domain with Cloudflare, but most registrars will work. ::: :::note In most cases, you should use a CNAME (Canonical Name) record to connect your subdomain to the reverse proxy. However, if you need to use a root domain, you will need to use an A record. Root domains are the base of a domain, like example.com, as opposed to a subdomain, subdomain.example.com :::
First, you will want to head over to your domain's DNS settings panel. In this demo, we will be using Cloudflare, and as an example domain, we will use subdomain.example.com.
The DNS record usually used for a reverse proxy is a CNAME (canonical name). You will want to create an identical CNAME record as the one pictured above, but you will replace the 'Name' field with the subdomain of your choice.
Go to your domain's DNS settings. We will use Cloudflare for this demo and example.com as an example domain.
In this case, create a new A record, identical to the one above. Different DNS providers may use different methods to reference the root of a domain. In most cases, you should put an @
inside the Name box
:::note CNAME records can take some time to propagate, though this depends on your ISP and other factors.
For more information, check out this page. ::: :::warning If you do use Cloudflare for DNS, make sure to set the 'Proxy status' as DNS only as it won't work if it's proxied. :::
Once you've created your CNAME record, go to your game panel and on the left sidebar, select 'Ports & Proxies'.
More than likely, you will have one allocation, but to create a reverse proxy, you will need to create a new allocation, to do so, just click 'Create Allocation'.
Once your new allocation has been created, it will be assigned a random port, if you need a specific port, open a support ticket in the dedicatedminecraft.host Discord.
With this new allocation, you will want to input the domain or subdomain that you entered into your CNAME/A record, for this demo, we will input subdomain.example.com.