Forgive me if I am doing wrong, I have built a WordPress through Ubuntu tier on e2, and it’s fine and went well and it shows
http://ec2-xx-xxx-xx-xxx.eu-west-1.compute.amazonaws.com/yunshantea/
then I use Route53 for hosting zone direct to domain http://www.yunshan-tea.com/ it works fine and it right direct to IP address for “http://ec2-xx-xxx-xx-xxx.eu-west-1.compute.amazonaws.com/” and it works fine but it shows apache dashboards, but I have tried to put /yunshantea on route53 but they said they won’t accept /yunshantea location folder where the wordpress site at.
Can anyone advice me, as i am not familiar with AWS ec2 and Route53 as all new to me.
Do I need Redirect at Apache HTTPS.conf or something?
2
Answers
You cannot do this by Route53 alone. You can point a domain to specific server using A record or CNAME record but you cannot point it to a local directory using Route53.
You will have to create virtual hosts in apache to point specific domain to a content from specific local directory.
Apache Virtual Hosts
You can achieve this by using AWS ALB
http://ec2-xx-xxx-xx-xxx.eu-west-1.compute.amazonaws.com
/yunshantea
to the wordpress installation https://docs.aws.amazon.com/elasticloadbalancing/latest/application/tutorial-load-balancer-routing.html