How to change document root of Apache on Ubuntu code example
Example: apache2 change directory root
go to /etc/apache2/sites-available/000-default.conf
Change here:
<Directory /var/www/html/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>