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.
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.
- whispererDec 14, 2023MVP
Ok, so you can be specific in the stream directive which is a REGEX:
STREAM::expression {@http://xxx.yyy.com@https://xxx.yyy.com@}
So the above will check all text received by the F5 from the server side, and will match on http://xxx.yyy.com and change it over to HTTPS. It will also match something like the following: http://xxx.yyy.com/somepath/test.img -> https://xxx.yyy.com/somepath/test.img.
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