skip to Main Content

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


  1. 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

    Login or Signup to reply.
  2. You can achieve this by using AWS ALB

    1. Host your wordpress installation directly on http://ec2-xx-xxx-xx-xxx.eu-west-1.compute.amazonaws.com
    2. Create an ALB and register the EC2 server under that ALB
    3. Now using AWS ALB point your /yunshantea to the wordpress installation https://docs.aws.amazon.com/elasticloadbalancing/latest/application/tutorial-load-balancer-routing.html
    4. Now point the CNAME to the ALB and you are done
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search