Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. DNS CNAME and Cloudron Redirect for WWW

DNS CNAME and Cloudron Redirect for WWW

Scheduled Pinned Locked Moved Solved Support
domainsdns
7 Posts 5 Posters 1.5k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MCQtv 0
    wrote on last edited by girish
    #1

    I noticed that Google's link to my site was returning "You have found a Cloudron out in the wild" because it was using "www."

    I tried to fix this by adding a redirect for www in Cloudron and then by deleting my www CNAME record in DNS.

    Unfortunately this didnt work and now my entire site is returning "You have found a Cloudron out in the wild" for both www and non-www.

    I added the CNAME back into the DNS but now I can't undo the Cloudron redirect because it says a CNAME record for with that host already exists: "Error : External Error - message: A CNAME record with that host already exists. statusCode: 400 code:81054"

    Any ideas on how to get my site back up?

    1 Reply Last reply
    0
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #2

      Apparently you are using an automated DNS backend with Cloudron. DNS is a bit tricky with caching, so if you remove the CNAME and set a redirect or alias (depending on how you want it to be setup) within Cloudron should create the entries at the nameservers if that task does not error.
      Once done check your nameserver dashboard for those records. If that looks valid, it may take quite a long time to fully propagate. Especially if you have maybe accessed that domain in-between and your system thus has hit NXDOMAIN error, then it maybe failing for you for up to an hour or so!

      You can also send us a mail to support@cloudron.io with your domain name then I can run a few checks from here.

      1 Reply Last reply
      0
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #3

        This doesn't directly answer your question but might help debugging. You see the "You have found a Cloudron out in the wild" page when you point an arbitrary subdomain to the Cloudron server IP. It is essentially a "I have no clue what this domain page is" page.

        With the above understanding, the first step is to make sure that Cloudron knows about this subdomain. For example, if you just put a DNS CNAME record to Cloudron server, this is not enough. Cloudron needs to know about this new subdomain you added - this is required so that it can setup certs and also setup nginx to serve the right app (if you have 10 apps on your server, what should Cloudron serve up for this subdomain?).

        The way to let Cloudron know is to use redirects - https://docs.cloudron.io/apps/#redirections and I suspect this is what you are missing. Just add the "www" in the redirect section of the app in Cloudron dashboard. Some specific apps also allow aliases - https://docs.cloudron.io/apps/#aliases

        E 1 Reply Last reply
        0
        • girishG girish

          This doesn't directly answer your question but might help debugging. You see the "You have found a Cloudron out in the wild" page when you point an arbitrary subdomain to the Cloudron server IP. It is essentially a "I have no clue what this domain page is" page.

          With the above understanding, the first step is to make sure that Cloudron knows about this subdomain. For example, if you just put a DNS CNAME record to Cloudron server, this is not enough. Cloudron needs to know about this new subdomain you added - this is required so that it can setup certs and also setup nginx to serve the right app (if you have 10 apps on your server, what should Cloudron serve up for this subdomain?).

          The way to let Cloudron know is to use redirects - https://docs.cloudron.io/apps/#redirections and I suspect this is what you are missing. Just add the "www" in the redirect section of the app in Cloudron dashboard. Some specific apps also allow aliases - https://docs.cloudron.io/apps/#aliases

          E Offline
          E Offline
          eddowding
          wrote on last edited by
          #4

          @girish I'm facing this exact same issue today so this is timely.

          I have a redirect set up for www redirect, and set www as a cname on cloudflare, but still getting "This site can’t be reached"

          URL: https://www.roundbear.org/

          girishG 1 Reply Last reply
          0
          • E eddowding

            @girish I'm facing this exact same issue today so this is timely.

            I have a redirect set up for www redirect, and set www as a cname on cloudflare, but still getting "This site can’t be reached"

            URL: https://www.roundbear.org/

            girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #5

            @eddowding There doesn't seem to be a DNS entry at all. Can you check if www entry is there in cloudflare?

            $ host www.roundbear.org
            Host www.roundbear.org not found: 3(NXDOMAIN)
            
            E 1 Reply Last reply
            0
            • girishG girish

              @eddowding There doesn't seem to be a DNS entry at all. Can you check if www entry is there in cloudflare?

              $ host www.roundbear.org
              Host www.roundbear.org not found: 3(NXDOMAIN)
              
              E Offline
              E Offline
              eddowding
              wrote on last edited by
              #6

              @girish said in DNS CNAME and Cloudron Redirect for WWW:

              roundbear.org

              Thanks - that'll teach me to test things simultaneously! Fixed.

              Solution:

              1. set cname on cloudflare to www / baredomain.com
              2. set redirection on the app to add www
              1 Reply Last reply
              2
              • U Offline
                U Offline
                ugacomp
                wrote on last edited by
                #7

                I had the same issue and I was able to follow the steps given about setting up a redirection in Cloudron. In fact, I decided to write a full article about it to help others understand how to fix this issue step by step.
                You will have to make sure you put the right DNS entries and then set up the redirection. Read this guide here and it will help you to fix this issue.

                1 Reply Last reply
                2
                • girishG girish has marked this topic as solved on
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Bookmarks
                • Search