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. Beginners question: point Domain to directory?

Beginners question: point Domain to directory?

Scheduled Pinned Locked Moved Solved Support
6 Posts 4 Posters 943 Views 4 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.
  • David 0D Offline
    David 0D Offline
    David 0
    wrote on last edited by
    #1

    Hello all,
    I am currently experimenting with Cloudron and am considering switching from my managed hosting to a server with Cloudron.

    Is there any way to have a domain point directly to a directory (e.g. in the surfer app)? On my current webspace I have static HTML files in some folders, which are a very simple web page. The domain simply points to the corresponding directory on my webspace. Is there something like that in Cloudron too?

    best
    David

    girishG robiR 2 Replies Last reply
    1
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #2

      On Cloudron you would probably install one app per such folder.

      Alternatively I guess you could add apache settings in the lamp app to deliver specific folders based on domain https://docs.cloudron.io/apps/lamp/#apache-settings

      1 Reply Last reply
      0
      • David 0D Offline
        David 0D Offline
        David 0
        wrote on last edited by
        #3

        Thanks for your suggestion. I'd rather go with the one-app-per-folder/domain solution. lamp and apache stuff seems to nerdy/advanced for me (at least at this point in my journey towards being responsible for a webserver).

        1 Reply Last reply
        1
        • David 0D David 0

          Hello all,
          I am currently experimenting with Cloudron and am considering switching from my managed hosting to a server with Cloudron.

          Is there any way to have a domain point directly to a directory (e.g. in the surfer app)? On my current webspace I have static HTML files in some folders, which are a very simple web page. The domain simply points to the corresponding directory on my webspace. Is there something like that in Cloudron too?

          best
          David

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

          @David-0 Is your use case to have many directories named say static1, static2, static3 etc and have websites name static1.domain.com , static2.domain.com , static3.domain.com ?

          David 0D 1 Reply Last reply
          0
          • David 0D David 0

            Hello all,
            I am currently experimenting with Cloudron and am considering switching from my managed hosting to a server with Cloudron.

            Is there any way to have a domain point directly to a directory (e.g. in the surfer app)? On my current webspace I have static HTML files in some folders, which are a very simple web page. The domain simply points to the corresponding directory on my webspace. Is there something like that in Cloudron too?

            best
            David

            robiR Offline
            robiR Offline
            robi
            wrote on last edited by
            #5

            @David-0 yes, if you cleverly configure things.

            Cloudron is based on individual apps tied to domains or subdomains, not directories, however, what you're looking to do can be configured with a single Surfer app to host your HTML files in various directories, and then you can install the Proxy App on a bare domain to proxy to the Surfer App address/dir or "Upstream URI".

            For example:
            static.domain1.com/dir1 for the Surfer App with any number of /dir2, 3, 4, 5...

            domain1.com for the App-Proxy App(s) pointing to static.domain.com/dir1, 2, 3, 4, 5

            use docs.cloudron.io to see how to configure both surfer and the app-proxy

            Conscious tech

            1 Reply Last reply
            1
            • girishG girish

              @David-0 Is your use case to have many directories named say static1, static2, static3 etc and have websites name static1.domain.com , static2.domain.com , static3.domain.com ?

              David 0D Offline
              David 0D Offline
              David 0
              wrote on last edited by
              #6

              @girish said in Beginners question: point Domain to directory?:

              @David-0 Is your use case to have many directories named say static1, static2, static3 etc and have websites name static1.domain.com , static2.domain.com , static3.domain.com ?

              Currently, I have several directories on my webspace and a few domains with different TLDs pointing to each of them: namedomain.de , namedomain.org , namedomain.info etc.

              @robi What you're suggesting sounds interesting. I would definitely have a look into that. Thanks!

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