Forum Discussion

ellism's avatar
ellism
Icon for Nimbostratus rankNimbostratus
Feb 12, 2007

Help with Apache and Websphere Portal

I am very new to iRules, any help would be appreciated. The flow we are trying to make work is, come through an Apache server, which uses the customers authentication product. After you are authenticated it sends you back to the F5 LTM which thens sends you to the websphere portal. The issue is websphere wants to insert the port 9080 into the header. This would require us to rewrite the "Host" header coming from Websphere to remove the port number at either Apache or the F5, and there's no obvious way to do this currently that would still route the proxy request back properly. Can the use of an iRule be used to work around this?

 

2 Replies

  • Are you asking if the host header can be manipulated on the return traffic? I wasn't aware that http responses had a host header ?? If the application is sending back embedded links with the port, you can use the stream protocol to remove them without an irule. If I just don't understand your question and the websphere traffic is a request, then I think the syntax would be:

     

     

    when HTTP_REQUEST {

     

    HTTP::header replace "Host" [lindex [split [HTTP::host] ":"] 0]

     

    }

     

     

  • Richard__Harlan's avatar
    Richard__Harlan
    Historic F5 Account
    Are you talking about the 302 redirect that WebSphere send back. If so you can user the HTTP profile and turn on Redirect Rewrite. This should cause the BigIP to rewrite the 302 redirect.

     

     

    The other solution could be in the WAS admin GUI to set the virtual to also listen on port 80. I know sometime this can not happen.