• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1180
  • Last Modified:

How can I disable WebDAV features in apache when using as a proxy

I am using Apache to proxy incoming requests and pass off requests to a portal server. In the portal logs, I am seeing

HTTP Method HEAD not accepted
HTTP Method PROPFIND not accepted

I am using mod_proxy to achieve this. Is there a way I can have apache catch these before passing off to portal server? Again, apache is only a proxy at this point, not serving up any pages.
0
SeaRayNC
Asked:
SeaRayNC
  • 2
  • 2
1 Solution
 
Maciej SsysadminCommented:
So, you may turn webdav off completely, right?
Comment out LoadModule line, which loads webdav module (mod_dav.so). Restart apache after that.
0
 
SeaRayNCAuthor Commented:
how about the mod_dav_fs.so module?

is there a way just to filter out HEAD and PROPFIND methods?

If i turn off completely, what server code will be raised?
0
 
caterham_wwwCommented:
May be you want to deny all methods except GET and POST?
# may be there's already a wildcard proxy container present
<Proxy *>
    <LimitExcept GET POST>
        Order allow,deny
        deny from all
    </LimitExcept>
</Proxy>

Open in new window

0
 
SeaRayNCAuthor Commented:
Caterham

I think adding the LimitExcept would be preferable for me. Let me try. THis will allow us to use this functinality later, which we intend so I prefer not disabling it completely.

Will this throw a 501 to users who try to access with those methods?
0
 
caterham_wwwCommented:
No, a 403 forbidden. If you need a 501 and you're on apache 2.2


    <LimitExcept GET POST>
        Redirect 501 /
    </LimitExcept>

Open in new window

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now