2017-01-15 5 views
1

랩톱의 동일한 index.html이 웹 페이지를 올바르게 표시합니다. aws는 렌더링하지 않고 아래와 같이 텍스트를 그대로 보여줍니다. 다음 S3 정적 웹 사이트 호스팅 단계. 참고하시기 바랍니다.원시 텍스트를 표시하는 aws s3의 index.html

<html> 
<head> 
<title>Testing, Inc.</title> 
</head> 
<body bgcolor="#EDDD9E"> 
<h1 align="center">Welcome!</h1> 
<p>Welcome to my <strong>first</strong> webpage. I am writing this page using a text editor and plain old html.</p> 
<p>By learning html, I'll be able to create web pages like a pro....<br> 
which I am of course.</p> 
Here's what I've learned: 
<ul> 
<li>How to use HTML tags</li> 
<li>How to use HTML colors</li> 
<li>How to create Lists</li> 
</ul> 
</body> 
</html> 

감사합니다.

답변

3

파일의 확장자가 html/htm이 아니거나 파일에 확장자가없는 경우 Meta Data/Content-Type을 application/octet-stream으로 설정하면 text/html로 업데이트 할 수 있습니다. .

enter image description here

+0

이미 text-html로 설정된 Content-Type이 있습니다. 내 계좌는 아직 무료입니다. 이 때문에 어떤 제한? –

+0

평가판 계정과 관련된 아무 것도 없으며 사용자의 브라우저와 관련이있을 수 있습니다. 뭐라구? – seartun

+0

당신이 정확합니다! 나는 크롬을 사용하고 있었다. 지금 나는 IE를 시도하고 그것 일했다! 그러나 동일한 html은 내 노트북의 Chrome에서 잘로드됩니다. –

관련 문제