Forum Discussion
snormoyle
Nimbostratus
Nov 27, 2020data groups
my company engineering group created a solution using F5 as a S3 Proxy in AWS. The iRule supplied replaces the header with the s3 FQDN. I would like to use data group so when changes are required i...
mshoaib
Cirrus
Nov 28, 2020Hi
Its very easy to achieve what you have asked ( or atleast what I understood .... 😅 )
I have assumed the following for the data group
name : hostmapping_dg
contents :
s3customer.domain.com := s3customerdomain.s3.amazonaws.com
Please create a data group prior to using this iRule
Here is the iRule that can do this.
when HTTP_REQUEST {
set new_host [class search -value hostmapping_dg equals [HTTP::header host]]
if { ${new_host} != "" } {
HTTP::redirect $new_host
return
}
}
Thanks,
Muhammad
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects