Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

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

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

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
        }
    }
}
0
Comments on this Answer
Comment made 6 days ago by Faruk AYDIN 931

Hope it helps

Please mark it as accepted answer if it works

Regards

0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Hi

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

thanks

0
Comments on this Answer
Comment made 1 week ago by Faruk AYDIN 931

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

0
Comment made 1 week ago by Mahendra 4

proxy_pass reverse ?

0
Comment made 1 week ago by Faruk AYDIN 931

I think it is better to open new thread for this.
copy the full config?

0
Comment made 1 week ago by Mahendra 4

Apache config Set the ProxyPassReverse / -> https://example2/

this need to convert to f5 .

Thanks

0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Apache config Set the ProxyPassReverse / -> https://example2/

this need to convert to f5 .

Thanks

0
Comments on this Answer
Comment made 1 week ago by Faruk AYDIN 931

Use this iRule:

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