Forum Discussion

Mahendra_383208's avatar
Mahendra_383208
Icon for Nimbostratus rankNimbostratus
Feb 09, 2019

Nginx to F5

Hi,

 

we have nginx in our environment .we want to migrate to f5 for the below confiuration , can i have sample irule for that .

 

NGINX CONFIURATION subs_filter_types text/css text/xml text/javascript application/javascript;

 

subs_filter example.com example1.com;

 

can i anyone help on that

 

thanks

 

8 Replies

  • Hi guy,

    1-) add a stream profile to your VS

    2-) add the following irule to your VS.

    when HTTP_REQUEST {
      STREAM::disable
        HTTP::header remove "Accept-Encoding"
     }
     when HTTP_RESPONSE {
        switch -glob [string tolower [HTTP::header value Content-Type]] {
            "text/css" -
            "text/xml" - 
            "text/javascript" - 
            "application/javascript" {
                STREAM::expression {@example.com@example1.com@}
                STREAM::enable
            }
        }
    }
    
  • Hi

     

    what is the meaning of nginx -proxy pass reverse . Need to convert to f5 . i dont have much information .

     

    thanks

     

    • Faruk_AYDIN's avatar
      Faruk_AYDIN
      Icon for Nimbostratus rankNimbostratus

      proxy_pass is generally used to distribute the load among several servers like pool members of a pool in F5.

       

    • Faruk_AYDIN's avatar
      Faruk_AYDIN
      Icon for Nimbostratus rankNimbostratus

      I think it is better to open new thread for this.

       

      copy the full config?

       

  • Apache config Set the ProxyPassReverse / ->

     

    this need to convert to f5 .

     

    Thanks

     

    • Faruk_AYDIN's avatar
      Faruk_AYDIN
      Icon for Nimbostratus rankNimbostratus

      Use this iRule:

      when HTTP_REQUEST {
          HTTP::header replace "Host" "example2"
      }