Forum Discussion

Shaun_85943's avatar
Shaun_85943
Icon for Nimbostratus rankNimbostratus
Apr 26, 2010

"Simple" iRule problem.

Ok,

 

 

I am evaluating the LTM VE for a product my company is developing. I have attached a simple Visio with the base network topology. The admin server will actually be a failover cluster while there can be n web servers. I have the web servers in a pool named "my_iis_pool" while the admin server is in a pool named "admin_pool" and I am using the following code in my iRule to attempt to redirect to the admin server. So far all I get is a "404 not found error" or an "Internet Explorer cannot display the webpage" error. All the pages are right now is a slightly modified IIS7.5 page displaying the server name. Any bit of guideance will be greatly appreciated as this is my first attempt at writting an iRule and to me, it seems like it should be very simple to do.

 

 


when HTTP_REQUEST {
   if { [string tolower [HTTP::uri]] starts_with "/admin" } {
      pool admin_pool }
   else {
      pool my_iis_pool } 
   }

1 Reply

  • The iRule looks like it should work fine.

     

     

    I would suggest verifying that the content you have on your IIS Server is working properly, and then see if you need to have SNAT'ing set in the Virtual Server.

     

     

    (If the IP Address of the website or web server are not on a subnet owned by the F5, then you will need to enable SNAT'ing on the Virtual Server).