Hide nextcloud vm index.php

Hi, I am not a Linux expert
I am using the nextcloud community vm production V11. and would like to know how I can hide the root index.php page, the one that says "thank you for downloading…"
I found it in /var/www
if I move it to another folder when I navigate to http://192.168.1.5 I am then presented with two folders. if I make this server available to the public people tend to forget about the /nextcloud part of the url or they go to the base url and are either presented with these two folders or the page that shows the config of the server with all the internal addresses.

You need to enable .htacces and after it you can rewrite index.php

Yup, or configure the Apache config file to write out /nextcloud as the base URL for the vhost.

Thnaks for the replied however. I tried changing the apache2.conf file with little success, I may need a little elaboration on some answers
I added /nextcloud to the end of /var/www but end up with access denied rather than the login page

/Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
/Directory>

Directory /usr/share>
AllowOverride None
Require all granted
/Directory>

Directory /var/www>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
/Directory>"