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 same port, i have used 443 for abc.com and port 444 for xyz.com. It works fine when i access the sites thru internal IP(by adding a hosts entry) but the thru F5, the second url, https://xyz.com:444 doesn't work(page timeout)? what should i do to make it work?
Thanks in advance,
Venu.
5 Replies
Sort By
- hoolio
Cirrostratus
Hi Venu, - venu_96110
Nimbostratus
Hello Aaron, - hoolio
Cirrostratus
You 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]] } }
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 } }
- venu_96110
Nimbostratus
Thanks for the prompt reply. I have one final question. Since i have two ssl certificates for 2 different domains pointed to same IP. What are the changes i need to make on F5 so that the ssl certificates gets pulled from server such that https://xyz.com pulls its own cert and https://abc.com the respective one. - hoolio
Cirrostratus
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