Check the nextcloud installation directory (/var/www/nextcloud in case of Ubuntu-like OS). Is there a subdirectory or file named nextcloud? If yes, delete it or move it somewhere else. If n, send us your apache vhost config file. And, what is your OS?