Link to home
Start Free TrialLog in
Avatar of SeaRayNC
SeaRayNC

asked on

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.
Avatar of Maciej S
Maciej S
Flag of Poland image

So, you may turn webdav off completely, right?
Comment out LoadModule line, which loads webdav module (mod_dav.so). Restart apache after that.
Avatar of SeaRayNC
SeaRayNC

ASKER

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?
ASKER CERTIFIED SOLUTION
Avatar of caterham_www
caterham_www
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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?
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