I tried with this:

<Directory /opt/WebServices>
DirectoryIndex index.html index.htm index.shtml index.cgi index.tcl index.rvt

  AllowOverride None
  Order allow,deny
  Allow from all
  Require all granted
  # Require method GET HEAD POST PUT DELETE OPTIONS TRACE
  <Limit GET POST PUT DELETE>
     Order allow,deny
     Allow from all
  </Limit>
  <IfModule mod_security2.c>
    SecRuleInheritance Off
  </IfModule>
</Directory>

Again, 405 Method Not Allowed. GET, POST, PUT work as usual.

George

Στις 17/5/2013 01:47, ο/η Jeff Lawson έγραψε:
Try adding something like this to the appropriate scope in your Apache config:

    <Limit GET POST PUT DELETE>
        Order allow,deny
        Allow from all
    </Limit>




On Thu, May 16, 2013 at 4:50 PM, Massimo Manghi <[email protected] <mailto:[email protected]>> wrote:

    likewise there is no 405 or HTTP_METHOD_NOT_ALLOWED reference in
    Rivet C code

     -- Massimo


    On 05/16/2013 11:26 PM, Georgios Petasis wrote:

        If it is a configuration problem, what may be wrong?

        There is not a single reference in all apache 2.4
        configuration files
        about the methods. Only one exception, the user directories,
        where the configuration is:

        <IfModule mod_userdir.c>
        UserDir disabled
        </IfModule>

        #
        # Control access to UserDir directories. The following is an
        example
        # for a site where these directories are restricted to read-only.
        #
        <Directory "/home/*/public_html">
        AllowOverride FileInfo AuthConfig Limit Indexes
        Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
        Require method GET POST OPTIONS
        </Directory>

        Is DELETE in apache 2.4 disabled by default? I looked into
        documentation
        and some forums, but couldn't find anything useful.
        Tomorrow I will test if php can accept a DELETE request...

        George


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [email protected]
    <mailto:[email protected]>
    For additional commands, e-mail: [email protected]
    <mailto:[email protected]>



Reply via email to