웹 응용 프로그램에서 403 및 404 오류를 처리하려고합니다. MS instructions을 읽고 내 서버에 적용했습니다. 그것은 http://www.mysite/fictiousURL.aspx 같은 요청을 처리 않지만 http://www.mysite/fictiousURLTest.html에서 작동하지 않습니다IIS 7의 사용자 지정 HTTP 오류
<httpRedirect enabled="false" destination="/MySite" httpResponseStatus="Temporary" />
<httpErrors>
<remove statusCode="404" subStatusCode="-1" />
<remove statusCode="403" subStatusCode="-1" />
<error statusCode="403" prefixLanguageFilePath="" path="/mySite/Error.aspx" responseMode="ExecuteURL" />
<error statusCode="404" prefixLanguageFilePath="" path="/mySite/Error.aspx" responseMode="ExecuteURL" />
</httpErrors>
: IIS7 관리자가 효율적으로 내 Web.config의를 편집하여이 문제를 처리합니다. 그것은 aspx 요청을 처리 할 수있을 것 같습니다.
또한이 구성을 system.web 노드에 <customErrors mode="On" defaultRedirect="/mysite/error.aspx" />
으로 추가하여 http://www.15seconds.com/issue/030102.htm을 시도했습니다.
누구나 알고 계십니까? IIS7이 aspx 만 처리하는 이유는 무엇입니까? b) 누구나 http://www.mysite/fictiousURLTest.html과 같은 범용 요청을 처리하는 방법을 알고 있습니까?
덕분에, 빌 N은