Apache2 doesn't automatically find the index page. If I go to the (IP) address -I haven't bought a domain yet- where i should find the index page i receive the Server not found error.
I reinstalled Apache2 after a apt-get remove --purge apache2 apache2-utils but it doesn't change.
If I go to http://ipaddress/index.html it works.
I have the same problem with all index pages (or install.php pages for exaple).
There's no httpd.conf only apache2.conf and 000-default.conf in site-available.
000-default.conf:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/html>
DirectoryIndex index.php index.html
</Directory>
</VirtualHost>
.htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
I'm on Ubuntu Server 18.04 with mysql,php7.2 and apache2 installed.
.htaccessor vhosts confighttpd.confand check for or add aDirectoryIndex index.php index.html index.htm