# Load Balancing IIS Servers

**URL:** <https://community.f5.com/t/load-balancing-iis-servers/76101>\
**Category:** Technical Forums\
**Tags:** application-delivery\
**Created:** [May 15, 2025, 12:42pm UTC](https://community.f5.com/t/load-balancing-iis-servers/76101 "2025-05-15T12:42:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aabuitrago](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@Aabuitrago](https://community.f5.com/u/Aabuitrago)\
**Post date:** [May 15, 2025, 12:42pm UTC](https://community.f5.com/t/load-balancing-iis-servers/76101/1 "2025-05-15T12:42:17Z")

</div>

Hi,

I have two IIS Servers that I use to publish multiple sites. I load balance those two IIS Servers through a Big-IP.

I recently add a new application on the IIS Servers and for some reason when I try to access this new app I get the error “500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed.”&nbsp; If I try to access this app directly to the server “[http://ServerName/Newapp](http://ServerName/Newapp)” the site shows correctly.

What can be causing this issue

Regards,

---

<div class="post-metadata">

**Author:** ![Injeyan\_Kostas](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/injeyan_kostas/32/263_2.png) [@Injeyan\_Kostas](https://community.f5.com/u/Injeyan_Kostas)\
**Post date:** [May 15, 2025, 1:38pm UTC](https://community.f5.com/t/load-balancing-iis-servers/76101/2 "2025-05-15T13:38:29Z")

</div>

Might be SNI

You can you use either different Server SSL profiles or a generic irule like

```tcl
when HTTP_REQUEST
{
    set serverSideSSLSNIName [string tolower [HTTP::host] ]
}

when SERVERSSL_CLIENTHELLO_SEND
{
	#https://support.f5.com/csp/article/K41600007
	if { [info exists serverSideSSLSNIName] }
	{
	    if { [catch { SSL::extensions insert [binary format SSScSa* 0 [expr { [set sni_length [string length $serverSideSSLSNIName]] + 5 }] [expr { $sni_length + 3 }] 0 $sni_length $serverSideSSLSNIName] } ] }
	    {
		    log local0. "ERROR: Attempting to assign server SSL - SNI : $serverSideSSLSNIName failed"
	    }
	}
}

```

---

<div class="post-metadata">

**Author:** ![Aabuitrago](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@Aabuitrago](https://community.f5.com/u/Aabuitrago)\
**Post date:** [May 15, 2025, 1:59pm UTC](https://community.f5.com/t/load-balancing-iis-servers/76101/3 "2025-05-15T13:59:58Z")

</div>

Thanks for your prompt response.

In this case its a simple plain text virtual server.

---

<div class="post-metadata">

**Author:** ![Injeyan\_Kostas](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/injeyan_kostas/32/263_2.png) [@Injeyan\_Kostas](https://community.f5.com/u/Injeyan_Kostas)\
**Post date:** [May 15, 2025, 2:27pm UTC](https://community.f5.com/t/load-balancing-iis-servers/76101/4 "2025-05-15T14:27:33Z")

</div>

could you get a pcap?

also might your server accept only [http://ServerName](http://ServerName) as hostname  
do you have a proper binding on IIS for [http://vipname](http://vipname) ?

if not you might just need to rewrite host header

---

<div class="post-metadata">

**Author:** ![zamroni777](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/zamroni777/32/1473_2.png) [@zamroni777](https://community.f5.com/u/zamroni777)\
**Post date:** [May 18, 2025, 2:01am UTC](https://community.f5.com/t/load-balancing-iis-servers/76101/5 "2025-05-18T02:01:31Z")

</div>

test using “curl -vk [http://vip](http://vip):port/…”  
it will show many details to help troubleshoot the problem

if you put irules in the vserver config, also check /var/log/ltm

---

<div class="post-metadata">

**Author:** ![Aabuitrago](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@Aabuitrago](https://community.f5.com/u/Aabuitrago)\
**Post date:** [May 19, 2025, 2:18pm UTC](https://community.f5.com/t/load-balancing-iis-servers/76101/6 "2025-05-19T14:18:10Z")

</div>

Hi,

Thanks everyone for your suggestions. We discovered that the IIS Server was trying to resolve the name for the IP address of the source of the connection (the SelfIP of the F5). &nbsp;On the log of the IIS Servers we found this error No\_such\_host\_is\_known 8082 - 10.1.2.193. As soon as we created an entrance on the DNS for the selfIP of the F5, the application started to work.

Does anyone know if this behavior is normal as part of a particular configuration at the IIS?

Regards,

---

<div class="post-metadata">

**Author:** ![zamroni777](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/zamroni777/32/1473_2.png) [@zamroni777](https://community.f5.com/u/zamroni777)\
**Post date:** [May 28, 2025, 1:47am UTC](https://community.f5.com/t/load-balancing-iis-servers/76101/7 "2025-05-28T01:47:05Z")

</div>

it’s not iis specific, but app specific.  
i had encountered some java based http servers had that behavior.
