3
4
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, "1.2.3.4"
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 "1.2.3.4"
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!
Thanks!
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"
1Valid example websites are example.{com|net|org}, if you want to use those. – TRiG – 2013-09-20T15:20:20.080