Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a form with method="POST"

<form id="home-searchform" method="POST" action="test_list/">{% csrf_token %}

and i'm running apache2 with mod_wsgi for my django application

When i try to submit a form, i get this error:

[22/Jul/2011 10:49:40] "POST /jobs/test_list/ HTTP/1.1" 405 0

which is the "Method not allowed" error. It's almost 2 hours i'm trying to fix that, this is the relevant part of the httpd.conf file:

#<Directory /var/www/>
#    AllowOverride FileInfo AuthConfig Limit
#    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
#       <Limit GET POST OPTIONS>
#               Order allow,deny
#               Allow from all
#       </Limit>
#    <LimitExcept GET POST OPTIONS>
#        Order deny,allow
#        Deny from all
#    </LimitExcept>

all the limit directives are commented out, so they shouldn't apply, but still i get that error everytime i submit a form.

I actually suck (a lot) in server configurations, so i really need as much help i can get.

I tried to decomment only the ... block, but then apache won't restart... I hope i gave you all the info needed, otherwise just ask and i'll edit! Thanks again!

EDIT: i'm posting the full httpd.conf file here (on pastie.org) since i don't have any .htaccess nor othe config files

share|improve this question
"This is the relevant part of the httpd.conf" That section is all commented out, please include the section being used by your server then we can give you more help. All lines that start with a # will be completely ignored by the server –  sam Jul 22 '11 at 9:39
I know all comments are ignored (read my post plz) i'm noob at apache's conf, not at everything. That is the only part i know of which is related to my problem. What else should i post? –  Samuele Mattiuzzo Jul 22 '11 at 10:06
If you don't know what part to post, do the entire virtual host (The bit where you specify your directory root). I did read your post but telling us which bits of your config you commented out gives us nothing to work with. –  sam Jul 22 '11 at 10:09
Did you end up finding a solution? –  User Jul 9 '14 at 0:19
No, never found out –  Samuele Mattiuzzo Jul 9 '14 at 8:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.