I'm getting a 504 Bad gateway error when I try to browse to my site directly by entering the URL, however I can SSH into the publicly accessible machine by using the ip address and the url instead of the ip. On my android phone I see the bad gateway, and in chrome browser it simply says the :Oops! Google Chrome could not connect"
I'm trying to pin down why this happening, does anyone have any pointers or methods that I can use to figure out whats going on here? Never had this situation before.
Edit to add more info:
I'm running on Ubuntu 12.04.3 and Apache2 with a pretty much default configuration, with the addition of mod_evasive and mod_security. I have PHP 5 with suhosin and MySQL. Currently I't attempting to access an index.html and have no other files in there other than this. UFW is configured for port 80 and one for ssh, as well as 53 for DNS.
Also I'm not behind any kind of proxy.