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 f...
nitass
Employee
Nov 12, 2010172.28.17.52 is VS
8.8.8.8 is google's dns server
the vs name is bar1 (no space)
for the duplicate event/priority, i think so.
this is name::lookup version. btw, i'm not an irule geek, so pls feel free to revise.
additionally, i'd to do workaround in sol12224 to make it work. not sure if u r also affected.
rule 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