将子目录 url 重定向到 AWS 中的另一个实例而不更改 URL
Redirect a Subdirectory url to another instance in AWS without changing URL
我在一个帐户下设置了以下内容:
- 域:example.com DNS 由 AWS Route 53 管理
- 托管应用程序:在
www.example.com
下具有 AWS ELB 的 Web 应用程序
- 托管博客:在单独的 AWS EC2 实例中的 Wordpress 博客,目前使用 link
blog.example.com
我想达到的目标:
Example.com/blog
-> 重定向到 AWS EC2 实例中的博客,以便所有页面将显示为 example.com/blog/entry1
和 example.com/blog/entry2
等,
我的问题:Route 53 只允许像博客这样的子域。example.com。
在 Application Load Balancer 中设置基于路径的路由(如果您当前使用的是经典 ELB,则需要切换到 ALB),或者将 CloudFront 放在您的域前面并使用两个源配置它。
我在一个帐户下设置了以下内容:
- 域:example.com DNS 由 AWS Route 53 管理
- 托管应用程序:在
www.example.com
下具有 AWS ELB 的 Web 应用程序
- 托管博客:在单独的 AWS EC2 实例中的 Wordpress 博客,目前使用 link
blog.example.com
我想达到的目标:
Example.com/blog
-> 重定向到 AWS EC2 实例中的博客,以便所有页面将显示为 example.com/blog/entry1
和 example.com/blog/entry2
等,
我的问题:Route 53 只允许像博客这样的子域。example.com。
在 Application Load Balancer 中设置基于路径的路由(如果您当前使用的是经典 ELB,则需要切换到 ALB),或者将 CloudFront 放在您的域前面并使用两个源配置它。