Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Unsolved Adding Image folder to public website

    WordPress (Managed)
    4
    4
    167
    Loading More Posts
    • 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.
    • T
      tparker last edited by

      I'm new to Cloudron and am a bit lost. Moved Wordpress site from a CWP7 server. Installed Wordpress Managed app and was able to SFTP to it. The problem is, on our original server I had some image folders in the root of the website that were unrelated to the Wordpress installation. Clearly I cannot just upload them via SFTP because I cannot access them in my browser. Is there a way to add folders to root of my domain (like domain.com/auction-pics/ ) even though I'm running the Wordpress App? I know I can add the folder to the wp-content folder and get to it, but then all the custom photos we've added to our ebay auctions will have to be edited - and it's a LOT of auctions. Hope this makes sense.

      T. Parker
      Dad's Super Pawn
      https://dadssuperpawn.com

      nebulon robi humptydumpty 3 Replies Last reply Reply Quote 0
      • nebulon
        nebulon Staff @tparker last edited by

        @tparker I think you would require the non-managed app flavor to do so. It is labeled as "developer" edition in the app library.

        1 Reply Last reply Reply Quote 1
        • Moved from Support by  nebulon nebulon 
        • robi
          robi @tparker last edited by

          @tparker said in Adding Image folder to public website:

          Is there a way to add folders to root of my domain (like domain.com/auction-pics/ )

          By default no, as wordpress protects it's own files.

          There is a subdirectory called wp-content/ which you can add folders to and your images images.

          There may be an advanced WP config parameter that let's you define a root/directory which won't be protected (denied access/listing). This can be done via the htaccess file. (do some research on how to add exceptions to the default rewrite rules)

          Alternatively you can set up an images subdomain for your domain as a surfer app and configure it to host all your images in a separate way. (img.domain.com/pic.jpg)

          Life of Advanced Technology

          1 Reply Last reply Reply Quote 1
          • humptydumpty
            humptydumpty @tparker last edited by humptydumpty

            @tparker I tested what @nebulon suggested on my own WP "developer" website and uploading a custom folder with images works fine. The uploaded folder has "root" permission, so make sure to change that to "www-data".

            By the way, I can still use WP's auto-update feature for plugins so it's not completely "unmanaged".

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB