amazon-web-services - Direct requests to a specific path based on the subdomain
问题描述
Assuming I have a static website hosted on S3 and want http://app.example.com
to serve the contents of <s3-bucket>/app/index.html
, is that possible?
解决方案
是的,在 AWS 控制台中查看 S3 存储桶,转到属性并确保Static Website Hosting
已启用。
在您Index document
可以配置的设置中。默认情况下,它设置为index.html
。将其更新为该app/index.html
存储桶的默认页面。
推荐阅读
- microsoft-graph-api - 不要在每次更新事件 O365 后重新发送邀请
- vuex - 在操作方法中调用时,Vuex 状态变得不确定
- html - 如何在 Angular 中添加 bootstrap 5 模态
- google-sheets - 如果单元格等于字符串,如何在非连续范围内显示列标题
- android - 自定义微调器上的小错误空间
- java - 如何在android studio中更新地图中的位置
- google-cloud-platform - Google Data Studio - 在 GCP 审核日志中跟踪查看者凭据
- php - PHP Laravel 基于条件的交替推送
- typescript - 用于访问可能尚未创建的动态键:值对的正确 Typescript 语法
- blackhole - 由二元致密物体系统产生的引力波的自旋加权球谐函数