Forum Discussion
al_kabeer_2905
Nov 25, 2011Nimbostratus
Create Friendly URL
Hi i have bigIp LTM, v11 OS
i want to create friendly URL instead typing big URL to access the application, i google and found the below html code
i just want to fit the fo...
nitass
Nov 25, 2011Employee
is 10.10.1.10:4030 virtual server? if so, is this what you are asking?
root@ve1100(Active)(/Common)(tmos) list ltm virtual bar
ltm virtual bar {
destination 172.28.19.252:80
ip-protocol tcp
mask 255.255.255.255
profiles {
http { }
tcp { }
}
rules {
myrule
}
vlans-disabled
}
root@ve1100(Active)(/Common)(tmos) list ltm rule myrule
ltm rule myrule {
when HTTP_REQUEST {
switch [string tolower [HTTP::uri]] {
"/" { HTTP::redirect "http://[HTTP::host]:4030/xyzbnhtyijhgful/ccvvddaa" }
default {
HTTP::redirect "http://[HTTP::host]:4030[HTTP::uri]"
}
}
}
}
root@ve1100(Active)(/Common)(tmos) list ltm virtual bar2
ltm virtual bar2 {
destination 172.28.19.252:4030
ip-protocol tcp
mask 255.255.255.255
pool foo
profiles {
http { }
tcp { }
}
snat automap
vlans-disabled
}
root@ve1100(Active)(/Common)(tmos) list ltm pool foo
ltm pool foo {
members {
200.200.200.101:80 {
address 200.200.200.101
}
}
}
[root@ve1100:Active] config curl -I http://172.28.19.252
HTTP/1.0 302 Found
Location: http://172.28.19.252:4030/xyzbnhtyijhgful/ccvvddaa
Server: BigIP
Connection: Keep-Alive
Content-Length: 0
[root@ve1100:Active] config curl -I http://172.28.19.252/test
HTTP/1.0 302 Found
Location: http://172.28.19.252:4030/test
Server: BigIP
Connection: Keep-Alive
Content-Length: 0
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