Forum Discussion
risgro_77522
Nimbostratus
May 11, 2015URL needs to be in certain case letters
Hello,
In the URL/application, "WebCenter" is case-sensitive. So if a client hits:
https://qweb.sys.com/webcenter/default or
https://qweb.sys.com/Webcenter/default or
https://qweb.s...
nitass
Employee
May 24, 2015this is just one of examples.
configuration
root@(ve11c)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm virtual bar
ltm virtual bar {
destination 172.28.24.10:80
ip-protocol tcp
mask 255.255.255.255
pool foo
profiles {
http { }
tcp { }
}
rules {
qux
}
source 0.0.0.0/0
source-address-translation {
type automap
}
vs-index 4
}
root@(ve11c)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm rule qux
ltm rule qux {
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"/[wW]ebcenter/default" -
"/WEBCENTER/default" {
Do nothing
}
"/[wW][eE][bB][cC][eE][nN][tT][eE][rR]/default" {
HTTP::redirect "http://[HTTP::host]/WebCenter/default"
}
default {
Do nothing
}
}
}
}
test
[root@ve11c:Active:In Sync] config curl -I http://qweb.sys.com/webcenter/default
HTTP/1.1 404 Not Found
Date: Sun, 24 May 2015 14:18:07 GMT
Server: Apache/2.2.3 (CentOS)
Last-Modified: Sun, 09 Feb 2014 08:39:51 GMT
ETag: "41879c-59-2a9c23c0"
Accept-Ranges: bytes
Content-Length: 89
Content-Type: text/html; charset=UTF-8
[root@ve11c:Active:In Sync] config curl -I http://qweb.sys.com/Webcenter/default
HTTP/1.1 404 Not Found
Date: Sun, 24 May 2015 14:18:13 GMT
Server: Apache/2.2.3 (CentOS)
Last-Modified: Sun, 09 Feb 2014 08:39:51 GMT
ETag: "41879c-59-2a9c23c0"
Accept-Ranges: bytes
Content-Length: 89
Content-Type: text/html; charset=UTF-8
[root@ve11c:Active:In Sync] config curl -I http://qweb.sys.com/WEBCENTER/default
HTTP/1.1 404 Not Found
Date: Sun, 24 May 2015 14:18:32 GMT
Server: Apache/2.2.3 (CentOS)
Last-Modified: Sun, 09 Feb 2014 08:39:51 GMT
ETag: "41879c-59-2a9c23c0"
Accept-Ranges: bytes
Content-Length: 89
Content-Type: text/html; charset=UTF-8
[root@ve11c:Active:In Sync] config curl -I http://qweb.sys.com/WeBcEnTeR/default
HTTP/1.0 302 Found
Location: http://qweb.sys.com/WebCenter/default
Server: BigIP
Connection: Keep-Alive
Content-Length: 0
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
