Enabling PUT and DELETE methods

Discussion in 'Apache' started by tsame, Sep 26, 2016.

  1. #1
    Hello. I am running Apache on my raspberry pi and wanted to enable the PUT and DELETE HTTP method for testing.
    I tried adding the following to the .htaccess file in one of the browsesable directories: /var/www/test/

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

    However, testing with DELETE /test/arbitary_file
    returns 400 error code and the arbitary_file is not deleted

    Some topics regarding this on the net mention editing the httpd.conf file, but it is not present in the pi
     
    tsame, Sep 26, 2016 IP