Forum Discussion

Phil_T_73833's avatar
Phil_T_73833
Icon for Nimbostratus rankNimbostratus
May 14, 2014

Proxy a web service

I have a VS, Pool, Nodes that point to an IP address of a webserver hosting a webservice. That service is called via "https://servername/foldername/admin/" from within my domain. I have the pool equal to servername by IP Address. That IP Address redirects the user to a default site not the web service ("https://servername/foldername/admin/") that I want the user to hit.

 

How do I redirect traffic to this webservice. I want to use the BigIP for SSL and security reasons. Is APM or LTM best for this?

 

1 Reply

  • Even when it depends on how the web app is configured and is intended to work, you may try this iRule on your VS:

    when HTTP_REQUEST {
    if { ([HTTP::uri] == "/") } {
    HTTP::redirect https://[HTTP::host]/foldername/admin/
       }
     }
    

    Regards, hheredia