Serving a multitude of static sites from a wildcard domain in AWS

前端 未结 2 477
旧巷少年郎
旧巷少年郎 2020-11-28 15:29

I\'ve got a pretty specific problem here, we\'ve got a system that we already have and maintain, the system involves using subdomains to route people to specific apps.

2条回答
  •  悲哀的现实
    2020-11-28 16:08

    1. Create a Cloudfront distribution

    2. Add all the Alternate CNAMEs records in the cloudfront distribution

    3. Add a custom origin as the EC2 server.

    4. Set behaviours as per your requirements.

    5. Configure nginx virtualhosts in the server to route to specific folders.

提交回复
热议问题