Domain Issue

Discussion in 'Hosting Advice' started by ThePROX0517, Jun 2, 2017.

  1. I have a website that I want to add to my domain (Record A), but I already have a minecraft server running on record A. For example, my server domain is royalmadness.world and I want people to be able to connect to my minecraft server, but also when they type the domain on a browser, I want it to show the website, but my website is in a separate IP address than my minecraft server. Any advice?
     
  2. Use a SRV record for it
     
  3. What will I put on the SRV record? And will I have to put 2 A records?
     
  4. But your A records are different. I want my A records to be the same domain.
     
  5. In other words, you added playsrv infront so that the minecraft client can connect, but I was wondering if there was anyway so that the client could connect to the main domain and that the website could work on it too.
     
  6. The players will connect to the srv (in mc) which lets the player join playsrv subdomain
     
  7. I know that, but you have to use a subdomain for that, and I want it all to work on the same domain.
     
  8. I found a solution but now there's another problem. I'm okay with using www A record. But now in Page Rules, URL Forwarding is not working. Any help?
    upload_2017-6-5_1-0-57.png
    upload_2017-6-5_1-2-22.png
     
  9. The setup @jessegeerts proposed does actually that. I suggest you try it first.
     
  10. For the setup @jessegeerts proposed will mean that I will have to have a subdomain for my minecraft server which will make me lose players. That's why I decided to have my website hosted on the www A record. All I need now is for when people type royalmadness.world to redirect them to www.royalmadness.world, but for some reason it's not working. Cloudflare's page rule is supposed to do just that but why isn't it redirecting browsers to www.royalmadness.world? I also have another domain which is mineplexes.com. In pagerule I made it so that it redirects to Facebook.com just to test and see if there's any problem and it turns out it doesn't redirect to Facebook.com. Cloudflare's pagerule is the problem or there's more to it that I don't know yet?
     
  11. We both understood your question and the answer which @jessegeerts gave you does EXACTLY what you want. Please see an older thread with the same topic as yours here: https://www.spigotmc.org/threads/same-domain-for-both-server-and-site.55064/
    As I said before, try it and you'll see.

    Page rules don't have issues. They just don't work unless the traffic is being routed through Cloudflare (the orange icon on your DNS) however that doesn't work with Minecraft servers, only websites. This means that page rules are not an option for you.