Forum Discussion
Auz_102504
Feb 09, 2012Nimbostratus
webdav rule exclusion
We have the following http redirect in place on a microsoft sharepoint site
Request for will redirect to
when HTTP_REQUEST {
if { [HTTP::host] equals "hostname"}...
Auz_102504
Feb 10, 2012Nimbostratus
The following also works well I didn't need to disable the second statement
when HTTP_REQUEST {
if { [HTTP::header User-Agent] contains "Microsoft-WebDAV-MiniRedir"} {
event disable all
}
elseif { [HTTP::host] equals "hostname"} {
HTTP::redirect "http://fqdn[HTTP::uri]"
}
}
webdav as outlined doesn't understand http redirects so to ensure it doesn't get redirected we need to identify it using this
if { [HTTP::header User-Agent] contains "Microsoft-WebDAV-MiniRedir"} {
if this condition is met we need to ensure that redirect doesn't take place to do this we use
event disable all
then for all other conditions perform the redirect
elseif { [HTTP::host] equals "hostname"} {
HTTP::redirect "http://fqdn[HTTP::uri]"
thanks for your help nitass, much appreciated.
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