Apache2 Ubuntu Default Page

Installed Next cloud. i am able to log in using the local IP address but when i enter my external IP after opening ports i am not getting to NextCloud login page. i am running next Cloud 12 on Ubuntu server 16.04LTS. When i enter external IP i get Apache 2 Ubuntu Default Page. Error is posted below. Does anyone know of the work around?

“This is the default welcome page used to test the correct operation of the Apache2 server after installation on Ubuntu systems. It is based on the equivalent page on Debian, from which the Ubuntu Apache packaging is derived. If you can read this page, it means that the Apache HTTP server installed at this site is working properly. You should replace this file (located at /var/www/html/index.html) before continuing to operate your HTTP server.”

You have perhaps different vhosts for local and remote access? Or a https and a http vhost? Check your apache configuration and tell us how you configured it.

I’m have the same issue w.r.t the apache2 default page. What file should the index.html be replaced with /var/www/nextcloud/???

Either you create a virtual host for nextcloud and point to the correct directory or you just put all files/folders in the default website folder (for debian8 and newer: /var/www/html)

Very helpful! Thanks!