There is net cofiguration:
Client - FW - IIS
IIS is listening port 8080, there is a web application on IIS, for example MyApp. FW implements simple port forwarding (it replaces port 80 to port 8080). Assume the following case:
Client asks http://MyWebSite/MyApp/Index.aspx
, FW changes standart port 80 to 8080 and request is
http://MyWebSite:8080/MyApp/Index.aspx
. IIS returns to client requested page Index.aspx
One importatn thing: if user types in browser http://MyWebSite/myapp/index.aspx
IIS returns http://MyWebSite/MyApp/Index.aspx
(so it changes url address according the real application name).
Everything works well.
But the problem appears if I insert in standart pipeline WIF. For example I want MyApp to accept only authenticated users. I want to redirect users to some Identity Provider.
If user trying to get a page http://MyWebSite/MyApp/Index.a
spx, everything works fine, user is redirected to IP. But if user is trying to get http://MyWevSite/myapp/index.aspx
(applicaion name in lower case), IIS returns to client redirect to http://MyWebSite:8080/MyApp/Index.aspx
. Because port 8080 is closed on FW user gets an error.
If I remove WIF from my application everything works fine again.
Did anybody encountered sich a problem?