2016-06-27 2 views
0

다른 바인딩이있는 동일한 사이트에 https 리디렉션을 설정하려고합니다. 즉, 사이트 개발 = www.domain1.com 사이트 2 = www.domain2.com Site3 = www.domain3.com 내가 규칙을 리디렉션 다음하지만 그들은 단지 첫 번째 사이트 작동 및 기타이 개 사이트에 대한 작동하지 않습니다 사용하고동일한 사이트에 대해 여러 개의 https 리디렉션 설정

<rewrite> 
    <rules> 

    <rule name="HTTP/S to HTTPS Redirect" enabled="true" stopProcessing="true"> 
    <match url="http://domain1.com" /> 
    <conditions> 
     <add input="{HTTPS}" pattern="off" ignoreCase="true" /> 
    </conditions> 
    <action type="Redirect" url="https://domain1.com" redirectType="Permanent" /> 
    </rule> 

    <rule name="HTTP Redirect to HTTPS 2" enabled="true" stopProcessing="true"> 
    <match url="http://domain2.com" /> 
    <conditions> 
     <add input="{HTTPS}" pattern="off" ignoreCase="true" /> 
    </conditions> 
    <action type="Redirect" url="https://domain2.com" redirectType="Permanent" /> 
    </rule> 

내가 여기 실종 무엇을 안내하시기 바랍니다. http://domain1.comhttps://domain1.com으로 리디렉션되지만 domain2는 작동하지 않습니다.

답변

0

사이트의 각 응용 프로그램과 IIS의 각 사이트에 대해 URL을 구분하여 web.config로 다시 작성합니다. 재 작성 규칙은 ISS의 서버 루트 수준입니까?

관련 문제