블로그 이미지

카테고리

데꾸벅 (194)
Publisher (39)
Scripter (97)
Programmer (1)
Designer (30)
Integrator (18)
Pattern Searcher (4)
News (2)
강좌 및 번역 (3)

최근에 올라온 글

최근에 달린 댓글

'IIS 405'에 해당되는 글 1건

  1. 2008.10.29 IIS 405 Error 처리방법 2
ajax POST로 호출시 같은 도메인의 다른 웹서버의 xml 을 호출하였을 경우 405에러가 발생하는 경우가 있다.  이럴때는 get방식으로 처리한다. ㅡ.,ㅡ;  무조건 ajax는 RESTful하게 작성하는게 좋겠다...

 
   $.ajax({
        type: "POST", url: "xml/liveScore.xml",   //--> GET바꿔주면 해결끝
        data: {}, async: true, cache: false, dataType: 'xml',  timeout: 5000, global: false,
        success:function(resultDataSet){
            if(resultDataSet !=undefined && resultDataSet !=null ){
                var howManyLivescoreList =$(resultDataSet).find('list').length;
                if(howManyLivescoreList > 0 ) {
                    changeMainTab("livescore");
                }
            }
        }
    });




아래 사이트 참조 :
http://www.somacon.com/p126.php


원인은 IIS script map settings 에 get방식으로 조회가능한 확장자로 되어있어서 맵핑을 시켜주지 않는데서 있다.  보안정책상 IIS6에서는 스크립트 실행을 되지 않게 해 놓은데서 발생하는 문제다.

해결책은 다음과 같이..

  1. Go to "Control Panel"-"Administrative Tools"-"Internet Information Services".
  2. Expand the tree to "COMPUTERNAME"-"Web Sites"-"Default Web Site".
  3. Right-click on "Default Web Site" and select "Properties". (Alternately, select "Default Web Site" and press Alt+Enter.)
  4. Select the "Home Directory" tab.
  5. Click the "Configuration" button.
  6. From the "Mappings" tab, select the "Add" button.
  7. Click the "Browse..." button, choose "Dynamic Link Libraries *.dll" from the "Files of Type" dropdown, and select c:\WINDOWS\System32\inetsrv\asp.dll.
  8. Type ".html" (without quotes) in the "Extension" box.
  9. Select the "Limit to:" radio button, and type in "GET, POST" (without quotes) in the box next to it.
  10. Click the "OK" button and close all the dialogs. (If the "OK" button is greyed out, then make sure all the entries are correct and try clicking in the file name box.)

이것보단 그냥 RESTful하게 조회는 GET으로 처리하는게...



'Integrator > SECURITY' 카테고리의 다른 글

홈페이지 보안 강화 도구(CASTLE) 보급 안내  (1) 2009.01.20
Post by 넥스트리소프트 데꾸벅(techbug)
, |