Forum Discussion

Gareth_Atkins_3's avatar
Gareth_Atkins_3
Icon for Nimbostratus rankNimbostratus
Jul 14, 2010

problem with irule changeing http stream rewrite to https

Hi

 

 

I am using a irule to rewrite a content stream but its seem to be also changeing urls from http to https, i am also using a proxy pass irule for the requests. does any one know how to keep the requests as http once rewritten.

 

 

when HTTP_RESPONSE {

 

 

 

if {[HTTP::header value Content-Type] contains "text"}{

 

 

 

STREAM::expression "@insideserver.domain.com:8002@outsideserver.domain.com:8002@"

 

 

 

STREAM::enable

 

 

} else {

 

Disable the stream filter

 

STREAM::disable

 

}

 

}

 

3 Replies

  • Hi Gareth,

     

     

    Do you have rewrite redirects enabled on the HTTP profile associated with the virtual server? This would cause LTM to rewrite the Location header from http to https.

     

     

    Also, which LTM version and ProxyPass version are you running? The ProxyPassV10 rule will rewrite the Location header to https if there is a clientssl profile added to the vritual server. It could also do the payload replacement with a stream profile, if you configure it in the RULE_INIT event.

     

     

    Aaron