Forum Discussion
Pav_70755
Feb 20, 2012Nimbostratus
Accessing individual servers / nodes via a different port
I came accross a complete Irule which I used a few years ago which had this section in it:
when HTTP_REQUEST {
set srvr [findclass [TCP::local_port] $::TST_Individual_Servers " "]
...
Pav_70755
Feb 21, 2012Nimbostratus
when HTTP_REQUEST {
if { [TCP::local_port] eq "80" } {
persist cookie insert Test_Pool
pool TST_www.test.com-80
} else {
set srvr [findclass [TCP::local_port] $::TST_Individual_Servers " "]
if { $srvr ne "" } {
node $srvr 80
} else {
HTTP::redirect "http://search.tst.co.uk/"
}
}
}
I cant seem to get this to work although the Individual_Servers is an address datagroup with the following values
Address Value
10.169.128.21%3 8001
10.169.128.22%3 8002
so essentially what i want is to go to:
http://search.tst.co.uk:8001 and go to node 10.169.128.21%3 and http://search.tst.co.uk:8002 and go to node 10.169.128.22%3
But when i go to the address with the port number i get a page can not be found the VS has port translation enabled and all ports enabled too.
could it be something with the datagroup config do i need to configure it as a string?
Pav
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