컴퓨터 공부 ver 0.1/Django

The page cannot be displayed because an internal server error has occurred. 메시지가 화면에 보인다.

fromleaf 2016. 5. 11. 18:12
반응형

프로젝트를 당당하게 서버에 Deploy 한 후, 주소치고 들어갔는데 

The page cannot be displayed because an internal server error has occurred.  

메시지가 보인다면...web.config에 추가만 해주면 됩니다. 전 이걸로 꽤 고생했죠;;


시나리오

  1. Django프로젝트 서버에 Deploy 후 Azure에서 제공해주는 사이트 주소를 입력
  2. 페이지 화면에 [The page cannot be displayed because an internal server error has occurred.] 가 보임


해결 방법

  • web.config 파일 section중에 <system.webServer> section에 <httpErrors existingResponse="PassThrough" /> element를 추가 해주면 됩니다.
  • httpErrors의 의미(MSDN에서 검색해서 찾은걸로 기억해요.) 
    • Web site 혹은 application custom 에러 메시지 설정을 허락한다.
    • existingRespons=“PassThrough” 만약 Response 존재하면 해당 Response 보여주지 않는다.


반응형