I have an instance hosted using AWS Lightsail's LAMP stack. I also have a hostname on Godaddy.
$_SERVER['HTTP_HOST'] is returning 127.0.0.1:8000 where the application is running. Is there anyway to configure Apache so that this returns the hostname?