Hi, I have site inside ec2 folder, but on the registrant side how or what do I enter to connect it ec2 folder. I have tried cloudflare by entering the cname someothing like this but it did not work. ec2-255-255-255-259.ap-southeast-1.compute.amazonaws.com I have made virtual host as well. Can someone please guide me
Hi, I am not sure what you mean by ec2 folder. Anyways, I believe you are referring to a location on your AWS server here ec2 instance. So if you want to create a domain to link to a folder, you should probably try adding a VHost Alias on the ec2 server. Like ec2.your domain and point the document root to the folder. This will ensure correct contents are loaded. No go to registrar and add cname ec2 and point it ti the ec2 server. Hope that helps.
These might help https://httpd.apache.org/docs/2.4/vhosts/examples.html https://httpd.apache.org/docs/current/vhosts/name-based.html https://in.godaddy.com/help/add-a-cname-record-19236 https://support.google.com/a/answer/47283?hl=en https://www.networking4all.com/en/support/domain+names/dns/cname-records/
Thanks this has been achieved via virtual host and cname entry if you are using ubuntu virtual host file is in /etc/apache2/apache2.conf