Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to make apache accept custom HTTP methods? Say I want to send DESCRIBE method.

I tried enabling it in Limit directive but apache returned 405 method not allowed.

Here is my config, it's in mod_userdir.

    <Directory /home/*/public_html>
        AllowOverride All
        Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
              Order allow,deny
              Allow from all
              Order deny,allow
              Deny from all

I enabled PUT and DELETE methods in that config also, as default configuration does not allow PUT and DELETE.

share|improve this question
Why on earth do you want to do something like that? Even if you can massage Apache into accepting it (I'm not sure you can, since Apache is designed to be a HTTP server), no user agent is going to speak your custom method anyway. If instead you describe your goal, maybe someone can propose an actual solution. – Michael Kjörling Nov 22 '11 at 12:26
Why I want that? Just fooling around :). Also I know that custom extension to http is "bad", I meant this only for personal project, or rather I say, test. – Peter Nov 22 '11 at 13:11
Also HTTP specification does not forbid implementation of custom methods. – Peter Nov 22 '11 at 13:16
This made me laugh. Sounds like something I'd find myself doing in my spare time too though. In fact that's how I ended up on this page ;) – Paulpro Jul 4 '13 at 23:09
up vote 2 down vote accepted

Yes, this is possible. You'd have to write a module to accept the custom method. Mod_dav might be a good place to start; I don't know of any others that extend Apache's methods.

share|improve this answer
Oh didn't think about that, thanks for tip. It's definetly worth a try, if just for a heck of it. – Peter Nov 22 '11 at 15:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.