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

Posted on 2009-02-10
Last Modified: 2013-11-05
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.
Question by:SeaRayNC
    LVL 23

    Expert Comment

    by:Maciej S
    So, you may turn webdav off completely, right?
    Comment out LoadModule line, which loads webdav module ( Restart apache after that.

    Author Comment

    how about the module?

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

    If i turn off completely, what server code will be raised?
    LVL 27

    Accepted Solution

    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

    Open in new window


    Author Comment


    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?
    LVL 27

    Expert Comment

    No, a 403 forbidden. If you need a 501 and you're on apache 2.2

        <LimitExcept GET POST>
            Redirect 501 /

    Open in new window


    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
    In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now