asp.net - How to configure IIS application to work as a gateway -


i have written asp.net web api api gateway. base url of gateway http://localhost:88/apigateway. service have implemented looks header values , cookies in order route request. use blue-green deployments.

when header or cookie specific api-id found, request routed corresponding api.

for example, if found api-id alpha-v1.7.4, , url http://localhost:88/gateway/app/login.html, request routed http://localhost:8080/app/alpha-v1.7.4/app/login.html actual app or website resides.

this work when using owin , katana. urls routed correctly.

when installing gateway in iis, things getting strange.

i have put verbose logging gateway logs each request , found route. on iis observe followings requests reaching gateway , routed properly:

1: http://localhost:88/gateway/app/some_directory/ 2: http://localhost:88/gateway/app/another_directory_with_a.dot/ 3: http://localhost:88/gateway/app/some_path_no_trailing_slash 

the following request not reach gateway:

4: http://localhost:88/gateway/app/no_trailing_slash_with_a.dot 5: http://localhost:88/gateway/app/index.html 

to me seems iis letting pass directory paths (i.e. trainling slash .../.../directory/), resource path (i.e. no trailing slash .../.../resource) not smell file (since have not dot), blocks paths have no trailing slash dot inside (.../.../may_be_a.file blocked, .../.../not_a.file/ passes).

following these instruction did not work me: how disable request filtering specific website on iis 7.5?

any idea how configure iis work?

after messing around rammfar did not work me, came around solution:

<system.webserver>   <handlers>     <clear />     <add name="extensionlessurlhandler-integrated-4.0" path="*" verb="*" type="system.web.handlers.transferrequesthandler" precondition="integratedmode,runtimeversionv4.0" />   </handlers> </system.webserver> 

just clearing handlers , adding 1 , need solved problem.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -