Forum Discussion
DM_5174
Nov 02, 2011Nimbostratus
Redirect to another POOL with URI and port
Hi All,
I was wondering if there is a way to redirect a URI to POOL and keeping
the URI? Below are the irule to send to the pool, however, I could not figure out
or know if there is a way to k...
nitass
Nov 02, 2011Employee
does pool member really expect 192.168.2.100:8080 host header?
this is mine. both are working fine.
1
[root@iris:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.17.33:http
ip protocol tcp
profiles {
http {}
tcp {}
}
}
[root@iris:Active] config b pool foo list
pool foo {
members 10.10.70.110:webcache {}
}
[root@iris:Active] config ssldump -Aed -nni 0.0 port 80 or port 8080
New TCP connection 1: 172.28.17.20(56735) <-> 172.28.17.33(80)
1320253103.1999 (0.0009) C>S
---------------------------------------------------------------
GET /soap/newapp1 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: www.mydomain.com
Accept: */*
---------------------------------------------------------------
New TCP connection 2: 10.10.72.30(56735) <-> 10.10.70.110(8080)
1320253103.2002 (0.0003) C>S
---------------------------------------------------------------
GET /soap/newapp1 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: www.mydomain.com
Accept: */*
2
[root@iris:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.17.33:http
ip protocol tcp
rules myrule
profiles {
http {}
tcp {}
}
}
[root@iris:Active] config b pool foo list
pool foo {
members 10.10.70.110:webcache {}
}
[root@iris:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST_SEND {
clientside {
HTTP::header replace Host [LB::server addr]:[LB::server port]
}
}
}
[root@iris:Active] config ssldump -Aed -nni 0.0 port 80 or port 8080
New TCP connection 1: 172.28.17.20(33195) <-> 172.28.17.33(80)
1320253325.7189 (0.0007) C>S
---------------------------------------------------------------
GET /soap/newapp1 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: www.mydomain.com
Accept: */*
---------------------------------------------------------------
New TCP connection 2: 10.10.72.30(33195) <-> 10.10.70.110(8080)
1320253325.7194 (0.0004) C>S
---------------------------------------------------------------
GET /soap/newapp1 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: 10.10.70.110:8080
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