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. Surfer
  3. Point a seperate domain to surfer app

Point a seperate domain to surfer app

Scheduled Pinned Locked Moved Solved Surfer
5 Posts 3 Posters 777 Views 3 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.
  • G Offline
    G Offline
    GeHo
    wrote on last edited by
    #1

    I hope this hasn't been asked many time but i couldn't find any relating entry, so ...

    On my cloudron server the surfer app just runs fine. But I wonder if i could point seperate domain to a single surfer app. So let's say my surfer is up and running at https:://surfer.<cloudron>.<tld>. Now i have a separate domain like https://<my-private-site>.<tld> which should serve the content from the surfer app.

    In a standard enviroment i would simply adjust the nginx-settings to redirect the domain to the surfer-domain. But how would you do that the cloudron way?

    1 Reply Last reply
    1
    • fbartelsF Offline
      fbartelsF Offline
      fbartels
      App Dev
      wrote on last edited by
      #2

      Cloudron has a concept of aliases and redirects. In your case you could set up an alias to have your surfer app show the same data (without redirecting to the cloudron tld) as https:://surfer.<cloudron>.<tld>.

      1 Reply Last reply
      1
      • G Offline
        G Offline
        GeHo
        wrote on last edited by
        #3

        Aliases and Redirects do not provide the behaviour I would like to achieve.

        For example, I have a surfer app at surfer.example.com with in index.html that prints out "Hello Surfer World". Additionally I have a external Domain like example.org . I want to set up this domain in a way that when I enter https:://www.example.org in a browser window it would serve my index.html with "Hello Surfer World".

        I my understanding this would require the ability to alter the primary cloudron nginx.

        1 Reply Last reply
        0
        • G Offline
          G Offline
          GeHo
          wrote on last edited by
          #4

          Sorry, now I get it.

          I just have to register the external domain example.org in the Domain Panel and then create an alias in my surfer app with no entry.
          (That's why it says "Leave empty to use bare domain").

          Thanks for pointing me in the right direction.

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

            Yes your approach seems correct here. Cloudron will not overwrite any existing DNS records, so it is safe to add example.org in this case, even if its used elsewhere.

            1 Reply Last reply
            0
            • nebulonN nebulon marked this topic as a question on
            • nebulonN nebulon 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