Forum Discussion
URL Rewrite For Our Test Enviroment
We are making a copy of our production server infrastructure as our development environment and would like to rewrite the URL by using the F5, so that incoming traffic comes in as https://test.subdomain.domain.com but header information and packet information is rewritten to https://subdomain.domain.com. We are not offloading the SSL on the F5 currently.
Incoming Internet Traffic from the would be https://test.subdomain.domain.com.
I did some googling and this is what I came up with, but its for HTTPS. I also realized that we may need to OFFLoad the SSL cert on the F5, so that the F5 can manipulate the traffic.
if {[string tolower [HTTP::Host]] starts_with "test.subdomain.domain.com" } {
HTTP::header replace Host "subdomain.domain.com"
}
There are a few problems I can see already though:
- The above is for HTTP and I need HTTPS. I dont know how to configure the F5 for SSL offloading.
- I am concerned that this will only take care of the the Request and not the response
- I need to rewrite the url as well as the infromation and links on the page.
- ZM_123115Nimbostratus
I think this guide explains how to configure the SSL offloaind carefully.
http://www.lullabot.com/blog/article/setting-ssl-offloading-termination-f5-big-ip-load-balancer
Can I use the above code modified for HTTPS as iRULE?
if {[string tolower [HTTPS::Host]] starts_with "test.subdomain.domain.com" } { HTTPS::header replace Host "subdomain.domain.com" }
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