I'm writing a website that I'm having some trouble getting online with a Debian server using Apache2. When I run the site on port 8080 (i.e. www.example.com:8080), the whole thing runs fine and the page is loaded. However, when I tell Apache to use port 80 instead, it doesn't work. When I visit it (i.e. www.example.com), it just seems to load endlessly.
I made sure that port 8080 was changed to port 80 in both /etc/apache2/ports.conf and /etc/apache2/sites-enabled/mysitesfile. I also made sure to restart the apache server after doing this: afterwards, Nmap showed Apache listening on port 80.
I determined earlier that both port 80 and port 8080 were indeed open on the server. So what gives? So long as both port 80 and port 8080 are open, what could be causing a problem where it works on one but not the other? Were there files that needed to be edited that I didn't edit?
Any help would be VERY much appreciated!