I'm having trouble pointing a domain name to a subdirectory on an Amazon EC2 instance.
FYI - I'm not too experienced with DNS or networking ...
So jumping right in ...
I set up an Amazon EC2 instance with an elastic IP, for example, "18.104.22.168"
Edit: Apache2 server is installed on the instance.
I put a site under a folder, for example, "/var/www/html/website"
I have a domain name, for example, "example.com"
I've set up Route 53 with a hosted zone "example.com" with an A record that points to "22.214.171.124"
So when I go to "example.com", I get the Amazon Test Page.
How would I get "example.com" to point to the "/var/www/html/website" folder
Any help would be appreciated!
Edit: One thing I forgot to mention is that I have other folders for different websites that I want different domain names to point too. Eg. "example.com" points to "/var/www/html/website1" AND "example2.com" points to "/var/www/html/website2"