mvc3, IIs 7.5, server behind load balancer/firewall, forms authentication redirects to http://[ipaddress of machine]

情到浓时终转凉″ 提交于 2019-12-25 14:47:09

问题


hundreds of hits for these keywords, but nothing that is totally relevant.

So my web server is behind a load balancer. The web site is exposed by SSL.

When I open my logon page https[mydomain]/app/somepage.aspx, I am redirected to http://[ip address of server]/app/somepage.aspx.

I tried the follwing

  • Setting the loginurl to https[mydomain]/app/somepage.aspx, doesnt work
  • tried fiddling with the binding in iis, but there's an issue that forces us to use appcmd to set the hostname, but nothing works after I set it.

Suggestions?

Thanks


回答1:


This sounds more like a load balancer configuration error, or maybe your load balance just isn't capable of forwarding the request using the same url. It seems like your load balancer is mroe of a proxy, and is creating a new request using only the IP address. Most decent load balancers should have an option for forwarding the hostname.

This might be more of a Serverfault question because it has more to do with load balancer configuration.



来源:https://stackoverflow.com/questions/5844781/mvc3-iis-7-5-server-behind-load-balancer-firewall-forms-authentication-redire

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!