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

    Solved Redirect document root to a subfolder?

    LAMP
    2
    3
    155
    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.
    • humptydumpty
      humptydumpty last edited by

      Hi all,

      I installed LAMP under a subdomain and then uploaded my files using the File Manager. Is there a way to have the default document root be the uploaded subfolder instead?

      The reason I ask is because I have an app that only works with a specific subfolder scheme and I can't just copy over the files to the default LAMP root. It works in cPanel by going to "Domains" and setting up subdomain.mydomain.com to have a "Document Root" of /home/user/public_html/subdomain/subfolder. Suggestions?

      Thanks in advance!

      1 Reply Last reply Reply Quote 0
      • humptydumpty
        humptydumpty last edited by

        I found it at /app/data/apache/app.conf

        ServerName %{HTTP_HOST}
        
        <VirtualHost *:80>
            DocumentRoot /app/data/public/
        
        micmc 1 Reply Last reply Reply Quote 1
        • micmc
          micmc @humptydumpty last edited by

          Good work 😉 @humptydumpty


          https://marketingtechnology.agency
          For cutting edge web technologies

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