logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: 501 NOT IMPLEMENTED
Author
kekko5



Joined: 14 Apr 2024
Posts: 1

PostPosted: Sun 14 Apr '24 12:26    Post subject: 501 NOT IMPLEMENTED Reply with quote

Hi guys, I'm approaching Apache for the first time, I would like to understand how to deny or allow http methods (I would especially like to activate DELETE).
Any ideas?
Back to top
Stray78



Joined: 15 Apr 2024
Posts: 22
Location: USA

PostPosted: Tue 16 Apr '24 2:50    Post subject: Reply with quote

You can do this right in your config file. In the directory section like this...

<Directory "/">
# This Allows Only Certain Methods
<LimitExcept HEAD GET POST>
Require all denied
</LimitExcept>
</Directory>


Or in a location tag...

<Location "/">
AllowMethods GET POST OPTIONS
</Location>
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7360
Location: Germany, Next to Hamburg

PostPosted: Sun 28 Apr '24 20:46    Post subject: Re: 501 NOT IMPLEMENTED Reply with quote

kekko5 wrote:
Hi guys, I'm approaching Apache for the first time, I would like to understand how to deny or allow http methods (I would especially like to activate DELETE).
Any ideas?


The DELETE method is either implemented by mod_dav or by your own software (scripting language):

What do you want to do with it?
Back to top


Reply to topic   Topic: 501 NOT IMPLEMENTED View previous topic :: View next topic
Post new topic   Forum Index -> Apache