Forum Discussion
You can modify the REGEX experssion. Currently:
STREAM::expression {@http://@https://@}
So, if you want to match only on FQDN www.mysite.com, this would be as follows:
STREAM::expression {@http://www.mysite.com@https://www.mysite.com@}
Hope this helps? If not, please give examples of the transformation you are looking to accomplish. Initial URI and post URI.
- logan92Dec 14, 2023Altocumulus
Hi, Thank you for the answer , but i want to natch on HTTP_REQUEST URI or hostname or path.
- whispererDec 14, 2023MVP
Once again, can you please provide an example?
Original: http://www.somesite.com/mypath
Transformed: https://www.somesite.com/mynewpath
Seeing is believing, and examples get the point across quickly on what you are trying to accomplish exactly.
- logan92Dec 14, 2023Altocumulus
i have website which is https://www.yyy.com which has many subdomains in it for ex: https://xxx.yyy.com & https://ccc.yyy.com.
i want to apply stream profile only for https://xxx.yyy.com to change some content/urls in web page like <img src="http://"> ,<href src="http://"> , i want to change it from http to https to solve mixed content issue.
- zamroni777Dec 15, 2023Nacreous
as whisperer said that stream directive is regex, so:
":" and "." are part of regex syntaxes, so i suggest replace them with \x3A and \x2A
reference for the hexadecimal codes: https://man7.org/linux/man-pages/man7/ascii.7.htmlTo disable server side compression, simply apply HTTP compression profile to the virtual server.
this enables the compression offload which ltm requests uncompressed response from server (i.e. no Accept-Encoding header in server bound request).