Forum Discussion
venu_96110
Nimbostratus
Feb 20, 2009how to make https work
Hello,
I have two domains say abc.com and xyz.com which are running on same server. Now i would like to have https for both of them and since i cannot run two https on single ip and sam...
hoolio
Cirrostratus
Feb 24, 2009You can rewrite the port in redirects using an iRule like this:
when HTTP_RESPONSE {
Check if response is a redirect
if {[HTTP::is_redirect]}{
Replace port :444/ with /
HTTP::header replace Location [string map -nocase {:444/ /} [HTTP::header value Location]]
}
}
If the response content contains references to the 444 port, you could rewrite those using a blank stream profile and the following iRule. You may also need to add a custom HTTP profile with Response Chunking set to Rechunk. Check the STREAM::expression wiki page (Click here) for details.
when HTTP_RESPONSE {
Disable the stream filter by default
STREAM::disable
Check if response type is text
if {[HTTP::header value Content-Type] contains "text"}{
Replace :444/ with /
STREAM::expression "@:444/@/@"
Enable the stream filter for this response only
STREAM::enable
}
}
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
