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. Ghost
  3. Installing Ghost Into a Sub-directory

Installing Ghost Into a Sub-directory

Scheduled Pinned Locked Moved Ghost
5 Posts 3 Posters 879 Views
  • 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.
  • D Offline
    D Offline
    Dave Swift
    wrote on Jan 4, 2024, 4:59 PM last edited by
    #1

    I'd like to be able to use a reverse proxy to run Ghost in a folder of a site.

    Something like mydomain.com/blog would be ghost, but mydomain.com could be WordPress (or whatever else you'd like).

    I have accomplished already for clients using Cloudflare workers, but it would be wonderful do it right on the server.

    Does anyone know if this is possible on Cloudron? An easy way to do this in the GUI would be amazing.

    1 Reply Last reply
    1
    • R Offline
      R Offline
      robi
      wrote on Jan 4, 2024, 6:05 PM last edited by
      #2

      LAMP App is the only user controlled rProxy via Apache2.
      The rest flows from there.

      Otherwise you'd need to package a new custom WP+Ghost app with that config which would then live on the read-only filesystem.

      Conscious tech

      1 Reply Last reply
      1
      • G Offline
        G Offline
        girish
        Staff
        wrote on Jan 5, 2024, 9:46 AM last edited by girish Jan 5, 2024, 9:52 AM
        #3

        Right, we don't support installations in a sub path.

        Would @robi 's approach work? Given an installation of Ghost at blog.example.com and WP already installed at example.com , will some apache config (via /app/data/public/.htaccess) forwarding requests from /blog into blog.example.com work ?

        1 Reply Last reply
        0
        • D Offline
          D Offline
          Dave Swift
          wrote on Jan 5, 2024, 7:00 PM last edited by
          #4

          Yeah @robi & @grish that would likely work but I haven't tried yet.

          If anyone has experience here, please chime in!

          1 Reply Last reply
          0
          • R Offline
            R Offline
            robi
            wrote on Jan 5, 2024, 7:08 PM last edited by
            #5

            The simpler approach and what @girish is suggesting is to keep a separate install of WP and Ghost in 2 different apps and join them via the rev proxy config from one of them to keep the desired (sub)domain.

            Another option is the embeded iframe from the /blog page that pulls in the other URL.

            Let us know what you come up with as a final solution 😄

            Conscious tech

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes

            3/5

            Jan 5, 2024, 9:46 AM


            • Login

            • Don't have an account? Register

            • Login or register to search.
            3 out of 5
            • First post
              3/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Bookmarks
            • Search