Forum Discussion
FAZ_79699
Nimbostratus
Feb 08, 2012webdav access using hostname only - no FQDN
we have our intranet hosted via F5 LTM and to keep the old links working, the dns is configured with a hostname only, not FQDN. On the F5 LTM, there in an iRule redirecting http://hostname traffic to http://hostname.fullyqualified.domain.name.
The scenario above works for all browser based http traffic. But existing http://hostname type webdav shortcuts are not working.
new webdav connections that use FQDN http://hostname.fullyqualified.domain.name are working fine though.
Anyone tried to achieve this in the past? Any help/suggestion is much appreciated
8 Replies
- nitass
Employee
is webdav request using hostname only not working because irule redirection?
if so, may we detect webdav using HTTP::method and skip the redirection?
How do I detect a web dav request?
http://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/50/aft/1179140/showtab/groupforums/Default.aspx - FAZ_79699
Nimbostratus
Thanks for the response.
Kinda Yes, FQDN is working and only hostname based webdav shortcuts are not working. May be because of the redirect. But, both FQDN and only hostname based webdav shortcuts are working when go direct (not via F5)
I have tried HTTP::disable, reject and "event all disable" with no luck. - nitass
Employee
can you try something like this?
Disabling HTTP Processing For Unrecognized HTTP Methods by Deb
http://devcentral.f5.com/wiki/iRules.DisablingHTTPProcessingForUnrecognizedHTTPMethods.ashxwhen HTTP_REQUEST { switch [HTTP::method] { "MOVE" - "COPY" - "LOCK" - "UNLOCK" - "PROPFIND" - "PROPPATCH" - "MKCOL" { HTTP::disable return } } if {[string tolower [HTTP::host]] equals "hostname"}{ HTTP::redirect "http://hostname.fullyqualified.domain.name[HTTP::uri]" } } - FAZ_79699
Nimbostratus
Earlier I had two iRules - one for redirection and the other for detecting webdav methods and Disabling HTTP Processing. With your advise, I assumed we are trying to both in one iRule. So I kept only above iRule in the Virtual Server - still the same result - hostname based webdavs are not working.
Secondly, browser based redirection of hostname to FQDN stopped working... Earlier hostname based webdavs were the only problem... - nitass
Employee
Earlier I had two iRules - one for redirection and the other for detecting webdav methods and Disabling HTTP Processing.can you post your original irules? - FAZ_79699
Nimbostratus
Sure... below is the only iRule applied to the VS at the moment
when CLIENT_ACCEPTED {
HTTP::enable }
when HTTP_REQUEST {
switch [HTTP::method] {
"MOVE" -
"COPY" -
"LOCK" -
"UNLOCK" -
"PROPFIND" -
"PROPPATCH" -
"MKCOL" {
HTTP::disable
return
}
}
if {[string tolower [HTTP::host]] equals "only-hostname"} {
HTTP::redirect "http://hostname.fullyqualified.domain.name[HTTP::uri]" }
} - FAZ_79699
Nimbostratus
Quick update. Below solution devised by Auz works fine
http://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/50/aft/2161153/showtab/groupforums/Default.aspx - nitass
Employee
thanks for update.
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
