Forum Discussion
how to match hostname,uri & subdomain within stream profile
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, 2023
Altocumulus
Hi, Thank you for the answer , but i want to natch on HTTP_REQUEST URI or hostname or path.
- whispererDec 14, 2023
MVP
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, 2023
Altocumulus
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, 2023
MVP
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).
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
