amazon-s3 - How to serve a static html that has a php extension with S3?
问题描述
I can't change the extension of the file, but I need to serve it as a html file. No php inside.
解决方案
那会很好用。设置Content-Type
为text/html
。
您可以在 S3 控制台中执行此操作,如如何将元数据添加到 S3 对象?或者当您最初上传文件时。
推荐阅读
- javascript - D3 / JavaScript 加载数据和返回值
- css - 在迭代中使用变量调用 Stylus {block}
- matlab - 如何在matlab图中滑动绘制的线
- mysql - 如何通过“标签”属性对数据库实体进行高级过滤
- javascript - 在 vue 中删除列表中的对象时出错
- python-3.x - 计算从 PE 调用每个 IAT 的次数
- php - update_option 到 for 循环中的数组
- powershell - Start-Job - 参数的位置顺序
- php - 使用 PHP 和 PDO 搜索表单,然后在页面上显示结果
- java - 重新格式化字符串数组