I recently made a DigitalOcean droplet with LAMP pre-installed. Went and uploaded my website (including index.php) to /var/www
Apache just returns the It Works! page, I have to manually add /index.php to my url
Things I have tried:
DirectoryIndex index.php
to apache2.confEDIT: here's my apache2.conf file: http://pastebin.com/BMgiNdiD
You are missing following configuration:
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.php index.pl index.cgi index.asp index.shtml index.html index.htm \
default.php default.pl default.cgi default.asp default.shtml default.html \
default.htm home.php home.pl home.cgi home.asp home.shtml home.html home.htm
</IfModule>