were to change document root for website added in var/www 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>