amazon web services - URL rewrite rule based on HTTP_X_FORWARDED_PROTO not working AWS Windows EBS -


i have deployed application on windows based elastic beanstalk application , enabled ssl. working fine whether access using http or https.

but want force https on requests have added below rewrite rule in web.config

<rule name="redirect https" enabled="true" stopprocessing="true">     <match url="healthcheck.html" negate="true" />     <conditions>         <add input="{http_x_forwarded_proto}" pattern="https" negate="true" />     </conditions>     <action type="redirect" url="https://{http_host}/{request_uri}" redirecttype="permanent" appendquerystring="false" /> </rule> 

but rule not working , none of request redirected http https. sure http_x_forwarded_proto giving me correct value because have check request.params["http_x_forwarded_proto"] , giving http , https respective requests.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -