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
  • Brite
  • 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. LAMP
  3. Best practice for setting up additional subdomain

Best practice for setting up additional subdomain

Scheduled Pinned Locked Moved LAMP
6 Posts 4 Posters 1.3k 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.
  • C Offline
    C Offline
    CRBear
    wrote on last edited by
    #1

    Hello everyone,

    what is the "best practice" for utilizing subdomains on a LAMP web server? By default, the web server listens on domain.com and www.domain.com.

    Now, I want to set up an additional subdomain that points to a specific directory.

    Thank you.

    C 1 Reply Last reply
    1
    • C CRBear

      Hello everyone,

      what is the "best practice" for utilizing subdomains on a LAMP web server? By default, the web server listens on domain.com and www.domain.com.

      Now, I want to set up an additional subdomain that points to a specific directory.

      Thank you.

      C Online
      C Online
      ccfu
      wrote on last edited by
      #2

      @CRBear You can set up alias (sub)domains in the LAMP App and then use a .htaccess file to route them to a particular directory.

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

        To add to @ccfu , you can alternately also configure apache - https://docs.cloudron.io/apps/lamp/#apache-settings (after adding the alias subdomain)

        1 Reply Last reply
        0
        • C Offline
          C Offline
          CRBear
          wrote on last edited by
          #4

          Thank you. Does anyone have a template for me? It always ends up in a loop for me.

          1 Reply Last reply
          0
          • C Offline
            C Offline
            CRBear
            wrote on last edited by
            #5

            Could someone please help me with this? Thank you very much.

            marcusquinnM 1 Reply Last reply
            0
            • C CRBear

              Could someone please help me with this? Thank you very much.

              marcusquinnM Offline
              marcusquinnM Offline
              marcusquinn
              wrote on last edited by
              #6

              @CRBear Screenshot of your App Location Settings may help everyone to understand what you have so far, to then help with what you're doing within the LAMP app.

              Web Design & Development: https://www.evergreen.je
              Technology & Apps: https://www.marcusquinn.com

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