简体   繁体   English

带有 ASPX 文件扩展名但纯 HTML 的 Amazon S3 静态虚拟主机

[英]Amazon S3 Static Web Hosting with ASPX file extension but pure HTML

Is it possible to host web pages with .aspx extension but without dynamic code, including only HTML?是否可以托管带有 .aspx 扩展名但没有动态代码(仅包括 HTML)的网页?

For example, index.aspx as例如 index.aspx 为

<!doctype html>
<head>
<meta http-equiv="content-type" content="text/html">
</head>
<body>
This is a fake ASPX page
</body>
</html>

Yes you can是的你可以

Example例子

When you upload your file add the following metatag当您上传文件时,添加以下元标记

Content-Type: text/html

In this case, the object is public在这种情况下,对象是公共的

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM