Forum Discussion
Steve_89474
Nimbostratus
Aug 17, 2009host header redirect (?) and hide URI
I have a request coming in for: www.trees.somedomain.com
and I want the request to be handled by www.outdoor.somedomain.com/trees
but all I want the user to see is the www.trees.somedomain.com
How can this be done?
Thanks,
Steve
- If you want to mask if from the end user, you can just change the "Host" header value in the HTTP_REQUEST event.
when HTTP_REQUEST { if ( [HTTP::host] eq "www.trees.somedomain.com" ) { HTTP::header replace "Host" "www.outdoor.somedomain.com" HTTP::uri "/trees" } }
- Steve_89474
Nimbostratus
I get file not found. - Silly question, but is the "www.trees.somedomain.com" virtual the same one that handles "www.outdorr.somedomain.com"? The reason I ask is to make sure that the pool of servers that is currently targeted from
- Steve_89474
Nimbostratus
Thanks Joe. The header and URI replace seem to be essentially "redirecting" them. I added the "pool [poolname]".
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