I have created VM instance for Ubuntu 14.4 and installed Apache2 on it. I created my project set up onto it (project has PHP and Wordpress and m SQL). I am able to get the access log when I hit it by public IP of VM, but now I wanted to access it by domain name. I have added server name into by own .conf file and linked it to sites-enabled on apache2. When I hit URL using domain name it only gives 522.
I have enabled port 80, 442 3306 from VM, and added SSL configuration into .conf file and certificates also.