I'm very new to Ubuntu and server administration, so bear with me if it seems like I have no idea what I'm talking about.
I installed Ubuntu Server 16.04 on VirtualBox and after setting up an iptables firewall to allow SSH, HTTP(S), and loopback connections, I installed a LAMP stack by using:
sudo apt-get install lamp-server^
When I went to connect to the server through my web browser to see the default Apache "it works" page, I get a 404. Based on what other people have said, it should work right after a restart of Apache, which I did, but all I get is the 404. I've allowed everything I can think of through the firewall, I've looked everywhere I can on this website and others, and I'm tearing my hair out because I can't seem to find anyone with a similar situation.
Am I glazing over something blindingly obvious? Any help would be greatly appreciated.