NextCloud Image not Working on Browser

Hi,

I have a working server with NextCloud configured on it on an Amazon ec2, I made an image of that instance, and I opened another server from that image, now the second server isn’t working on the browser, if I enter the address (http://second_server/nextcloud/index.php/) nor (http://second_server/index.php/) although its the same working image and the file nextcloud.conf contains

Alias /nextcloud “/var/www/nextcloud/”

<Directory /var/www/nextcloud/>
  Options +FollowSymlinks
  AllowOverride All

 <IfModule mod_dav.c>
  Dav off
 </IfModule>

 SetEnv HOME /var/www/nextcloud
 SetEnv HTTP_HOME /var/www/nextcloud

Satisfy Any
</Directory>

keep in mind that the first server is still working fine at the address (http://first_server/nextcloud/index.php/)

what am I missing?

Thanks

it turned out that it was a matter of just cleaning apache cache.

run the following command: htcacheclean -v -t -p/var/cache/apache2/mod_cache_disk -l1024M

the -p points to the directory that contains apache cache folder
-l Specify LIMIT as the total disk cache size limit. Attach ‘K’ or ‘M’ to the number for pecifying KBytes or MBytes.