Forum Discussion
Dharmendra_2243
Nimbostratus
Nov 09, 2010redirection but url not change on browser
Forward all http requests for http://test.abc.com/try to http://pass.xyz.com The idea here is to maintain the URL as http://test.abc.com/try on the user’s browser while the content/site served up is from http://pass.xyz.com.
Please mail me on .
35 Replies
Sort By
- Chris_Miller
Altostratus
Very slick Aaron!It seems easy enough to resolve an IP address, but how exactly do you reference it? Let's say you have an extremely dynamic environment where IP changes constantly, can you get around not having any pools/nodes defined? You'd basically want to send traffic to node x:80 where x is whatever www.sample.com resolves too.
- hoolio
Cirrostratus
Hi Chris, - Chris_Miller
Altostratus
Cool. Thanks Aaron! I knew pool couldn't be dynamic but didn't realize node could be. I'll see what I can do. - Puneet_73909
Nimbostratus
Hi Aaron, - nitass
Employee
pls feel free to revise. - Puneet_73909
Nimbostratus
Hi Naladar, I have tried this irule but its not working, webpage is showing error. - Puneet_73909
Nimbostratus
Hi Nitaas, I tried this rule but its not working, may be because i am using ver 9.x.x, am i right ? - nitass
Employee
Posted By Puneet on 11/11/2010 08:13 AM - Puneet_73909
Nimbostratus
Hi Nitaas, I have few quaries, what is destination address(172.28.17.52) is it server or website address, and what is 8.8.8.8 before google.com.sg. - nitass
Employee
172.28.17.52 is VSrule rewrite1 { when HTTP_REQUEST { HTTP::collect NAME::lookup www.google.com.sg } when NAME_RESOLVED { if { [HTTP::uri] eq "/try" } { HTTP::header replace Host "www.google.com.sg" HTTP::uri "/" node [NAME::response] 80 } else { pool foo1 } snat automap HTTP::release } }
curl -I http://172.28.17.52/ HTTP/1.1 200 OK Date: Thu, 11 Nov 2010 21:55:22 GMT Server: Apache/2.0.59 (rPath) Last-Modified: Thu, 11 Nov 2010 04:23:21 GMT ETag: "1315d-5f-5580a040" Accept-Ranges: bytes Content-Length: 95 Content-Type: text/html; charset=UTF-8 curl -I http://172.28.17.52/try HTTP/1.1 200 OK Date: Fri, 12 Nov 2010 07:33:33 GMT Expires: -1 Cache-Control: private, max-age=0 Content-Type: text/html; charset=ISO-8859-1 Set-Cookie: PREF=ID=e40991f367f510d5:FF=0:TM=1289547213:LM=1289547213:S=bVEofxfbPnH_AqIz; expires=Sun, 11-Nov-2012 07:33:33 GMT; path=/; domain=.google.com.sg Set-Cookie: NID=40=B-e9hc0zXAsdNidK4kGtlOygUbTNnSpTbeFSLO-SBWuVFwJHLkFRS06HMhBd9P53OexMLwpqPhIu78x3r4Iattx-dpVKlyKrNwr6_Lvc9iXYSR_wpGfP1inkfQ8PAnLo; expires=Sat, 14-May-2011 07:33:33 GMT; path=/; domain=.google.com.sg; HttpOnly Server: gws X-XSS-Protection: 1; mode=block Transfer-Encoding: chunked
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