top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Delete requests forbidden in Apache?

+2 votes
825 views

I use Apache server on a Arch Linux machine. I have a big problem with the delete requests. Apache refuse all of them with the 403 response status code.

I do not understand why. Please help me?

posted Apr 24, 2014 by Abhay

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button
Is your httpd configuration forbidding DELETE? Check
http://stackoverflow.com/questions/11170377/apache-delete-request

1 Answer

+1 vote

Because that's typically a very dangerous operation to just leave open. Generally speaking it would mean that people could send requests to your Apache saying to delete something from it (granted, it would be "just" things the user running Apache has access to).

Most configurations I've ever worked with (at least production) have everything but HEAD/GET/POST disabled by default.

answer Apr 24, 2014 by anonymous
Ok but how can I enable it? I need it for some restful api.
I tried the Limit clause but it does not work.
Similar Questions
+3 votes

I have a requirement where the tomcat load has to be managed by tuning the following parameters.

--> Limit the number of user requests at Apache level that are routed to Tomcat server.
--> Track the number of processed requests and the requests that are queued at Apache level.

Any suggestions?

+1 vote

I've got a web-app written in Orbit/Kepler (the Lua framework) and I'm wanting my visible URL paths free of file extensions or un-necessary path elements. I'd like to expose just a nice, clean restful-like api.
From the docs, it seems the only way to tell Apache to dispatch handling to wsapi-fcgi is via the "add handler" construct. And that requires me to specify EITHER a static path component, or the individual file extensions (i.e. .lua) to be handled.
Is there any way to tell Apache to pass ALL requests "without" a specific file extension to Lua and let the remaining (image, js, css file requests) be the exception??

+1 vote

Is there is a opposite of __init__.py like __del__.py

I want, that when the application ends, certain functions are executed. I know I could make a constructor and a destructor, but I simply want to know if there is a opposite....

+1 vote

When I run git clean -xfd, git deletes my tags file. I have the tag file listed in gitignore, but how do I tell git not to remove the tags file.

+2 votes

I currently have a problem on my backup server with very large number of small files in a large number of directories. I would like to delete them as fast as possible. Currently I use:

rsync -a --delete /empty_directory/ dir_to_clean/

I've read that rsync will be faster than rm or find. Can someone recommend something? I use an ext4 filesystem.

...