title: configuring HTTP method on Apache2.22 on debian 7
body: <p>I have google and read a few discussion threads but somehow I still can't quite get the configuration of http method working. Below are my config from /etc/apache2/sites-available/default .   I have also tried to edit my userdir.conf but no matter what I do , when i query my localhost:80, i always get back 4 allow methods GET,HEAD,POST,OPTIONS .  Can someone kindly point me out what I went wrong for the configuration?  I am trying to allow HTTP PUT here.</p>
  
  <hr>
  
  <pre><code>&lt;VirtualHost *:80&gt;
          ServerAdmin webmaster@localhost
  
          DocumentRoot /var/www
          &lt;Directory /&gt;
                  Options FollowSymLinks
                  AllowOverride None
                  Order Allow,Deny
                  &lt;Limit GET POST PUT DELETE&gt;
                  allow from all
                  &lt;/Limit&gt;
          &lt;/Directory&gt;
  
          &lt;Directory /var/www/&gt;
                  Options Indexes FollowSymLinks MultiViews
                  AllowOverride All
                  Order allow,deny
                  &lt;Limit GET POST PUT DELETE OPTIONS&gt;
                  allow from all
                  &lt;/Limit&gt;
          &lt;/Directory&gt;
  
          ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
          &lt;Directory "/usr/lib/cgi-bin"&gt;
                  AllowOverride None
                  Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                  Order allow,deny
                  Allow from all
          &lt;/Directory&gt;
  
          ErrorLog ${APACHE_LOG_DIR}/error.log
  
          # Possible values include: debug, info, notice, warn, error, crit,
          # alert, emerg.
          LogLevel warn
  
          CustomLog ${APACHE_LOG_DIR}/access.log combined
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <hr>
  
  <p>
          UserDir public_html
          UserDir disabled root</p>
  
  <pre><code>    &lt;Directory /home/*/public_html&gt;
              AllowOverride FileInfo AuthConfig Limit Indexes
              Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
              &lt;Limit GET POST OPTIONS DELETE&gt;
                      Order allow,deny
                      Allow from all
              &lt;/Limit&gt;
              &lt;LimitExcept GET POST OPTIONS DELETE&gt;
                      Order deny,allow
                      Deny from all
              &lt;/LimitExcept&gt;
      &lt;/Directory&gt;
  </code></pre>
  
  <p></p>
  
  <hr>
  
  <pre><code>root@debian-pre2:/var/log/apache2# dpkg -l |grep apache
  ii  apache2                            2.2.22-13                     amd64        Apache HTTP Server metapackage
  ii  apache2-doc                        2.2.22-13                     all          Apache HTTP Server documentation
  ii  apache2-mpm-prefork                2.2.22-13                     amd64        Apache HTTP Server - traditional non-threaded model
  ii  apache2-utils                      2.2.22-13                     amd64        utility programs for webservers
  ii  apache2.2-bin                      2.2.22-13                     amd64        Apache HTTP Server common binary files
  ii  apache2.2-common                   2.2.22-13                     amd64        Apache HTTP Server common files
  ii  libapache2-mod-php5                5.4.4-14+deb7u5               amd64        server-side, HTML-embedded scripting language (Apache 2 module)
  </code></pre>