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

  • Staff

    A popular request with the LAMP is how to change the DocumentRoot.

    The latest package now has the apache configs under /app/data/apache. You can edit the files there and just restart the app.

    For example, to move the PHP directory to say /app/data/public/frontend, edit apache/app.conf like so:

    <VirtualHost *:80>
        DocumentRoot /app/data/public/frontend
        ErrorLog "|/bin/cat"
        CustomLog "|/bin/cat" combined
        <Directory /app/data/public/frontend>
            Options +FollowSymLinks
            AllowOverride All
            Require all granted
        # Do not remove this include. It's required for your app to see the Real IP
        Include "/app/code/apache/rpaf.conf"
        # This line can be commented out, if you do no require PHPMyAdmin Access
        Include "/app/code/apache/phpmyadmin.conf"
  • Staff

    cc @andirahmat I recall giving you some complicated htaccess rules for this. It's simpler now.

  • @girish Thank you girish