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. multiple static sites on one app

multiple static sites on one app

Scheduled Pinned Locked Moved Surfer
4 Posts 4 Posters 702 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.
  • rosanoR Offline
    rosanoR Offline
    rosano
    wrote on last edited by
    #1

    I understand GitHub Pages and Surfer can only point domains at the root, so they host one 'site' at a time. Is there a best practice for hosting multiple static sites on a single Cloudron app? Is it possible to map multiple domains to separate directories in Surfer?

    In the topics Best App to Set up Static websites? and Best Choice for Static Website I didn't see something similar.

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

      Given that surfer has very low resource footprint, the solution is to just install one surfer instance per domain. That way they are also properly isolated from one another.

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

        A "hack" if you really really really want a single app would be to use the LAMP app. You can add any number of alias domains. After that , yu have to then configure apache there to serve up different folders based on the request domain.

        micmcM 1 Reply Last reply
        2
        • girishG girish

          A "hack" if you really really really want a single app would be to use the LAMP app. You can add any number of alias domains. After that , yu have to then configure apache there to serve up different folders based on the request domain.

          micmcM Offline
          micmcM Offline
          micmc
          wrote on last edited by
          #4

          @girish said in multiple static sites on one app:

          A "hack" if you really really really want a single app would be to use the LAMP app. You can add any number of alias domains. After that , yu have to then configure apache there to serve up different folders based on the request domain.

          Indeed, though you need to have a bit of Apache server knowledge and you can configure all your virtual hosts inside the Apache configuration file, which is named app.conf on Cloudron.

          As a matter of fact DO offers a pretty decent Apache configuration tutorial. It's relatively easy, you don't need to know everything, just how to host multiple static pages on once instance.

          Have fun. 🙂

          Ignorance is not an excuse anymore!
          https://AutomateKit.com

          1 Reply Last reply
          2
          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