Forum Discussion
Mike_Watson_125
Nimbostratus
Mar 11, 2013Irule Transparent Ridiredt
I have a user type http://elmdemo.access.com and need it to redirect to http://elmdemo1.access.com :6000/elmdemo/sighno.html. I have the redirct working, but it changes the users URL in the browser. ...
nitass
Employee
Mar 11, 2013is it something like this?
[root@ve10:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.19.252:80
ip protocol 6
rules myrule
profiles {
http {}
tcp {}
}
}
[root@ve10:Active] config b pool foo list
pool foo {
members 200.200.200.101:6000 {}
}
[root@ve10:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
HTTP::header replace Host "elmdemo1.access.com"
if { [HTTP::uri] eq "/" } {
HTTP::uri "/elmdemo/sighno.html"
}
}
}
test
[root@ve10:Active] config ssldump -Aed -nni 0.0 port 80 or port 6000
New TCP connection 1: 172.28.19.251(43427) <-> 172.28.19.252(80)
1363006712.5002 (0.0010) C>S
---------------------------------------------------------------
GET / HTTP/1.1
User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Host: elmdemo.access.com
Accept: */*
---------------------------------------------------------------
New TCP connection 2: 200.200.200.10(43427) <-> 200.200.200.101(6000)
1363006712.5010 (0.0006) C>S
---------------------------------------------------------------
GET /elmdemo/sighno.html HTTP/1.1
User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Host: elmdemo1.access.com
Accept: */*
---------------------------------------------------------------
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