代码之家  ›  专栏  ›  技术社区  ›  Steven Smith

EC2和Route53不直接指向正确的文件夹

  •  0
  • Steven Smith  · 技术社区  · 7 年前

    http://ec2-xx-xxx-xx-xxx.eu-west-1.compute.amazonaws.com/yunshantea/

    然后我使用Route53托管区域直接到域 http://www.yunshan-tea.com/ 它工作良好,它的权利直接到IP地址为“ http://ec2-xx-xxx-xx-xxx.eu-west-1.compute.amazonaws.com/ “它工作得很好,但显示的是apache仪表盘,但我曾尝试将/yunshantea放到53号路由上,但他们说他们不接受wordpress站点所在的/yunshantea位置文件夹。

    我需要在Apache重定向吗HTTPS.conf 或者别的什么?

    2 回复  |  直到 7 年前
        1
  •  1
  •   Amin Ahmed Khan    7 年前

    您可以通过使用AWS ALB来实现这一点

    1. 直接在主机上安装wordpress http://ec2-xx-xxx-xx-xxx.eu-west-1.compute.amazonaws.com
    2. 创建一个ALB并在该ALB下注册EC2服务器
    3. 现在使用AWS ALB点 /yunshantea https://docs.aws.amazon.com/elasticloadbalancing/latest/application/tutorial-load-balancer-routing.html
    4. 现在把CNAME指向ALB,你就完成了
        2
  •  3
  •   Alpesh    7 年前

    您必须在apache中创建虚拟主机,将特定域指向特定本地目录中的内容。

    Apache Virtual Hosts