Bug#347626: apache: Sends '405 Method Not Allowed' AND 'Allow: POST' when using POST
Package: apache
Version: 1.3.34-1
Severity: normal
When I try to POST a file Apache sends "405 Method Not Allowed", and at the same time "Allow:
POST". This seems weird.
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS PROPFIND>
Order Allow,Deny
Allow from all
</Limit>
<Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
Order Deny,Allow
Deny from all
</Limit>
</Directory>
There's no .htaccess file in that directory.
$ telnet HOSTNAME 80
Trying IP-ADDRESS...
Connected to HOSTNAME.
Escape character is '^]'.
POST /~user/login2.html HTTP/1.1
Host: HOSTNAME
HTTP/1.1 405 Method Not Allowed
Date: Wed, 11 Jan 2006 19:10:18 GMT
Server: Apache/1.3.34 (Debian) PHP/4.4.0-4 mod_perl/1.29
Allow: GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, PATCH, PROPFIND, PROPPATCH, MKCOL, COPY, MOVE, LOCK, UNLOCK, TRACE
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1
ef
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>405 Method Not Allowed</TITLE>
</HEAD><BODY>
<H1>Method Not Allowed</H1>
The requested method POST is not allowed for the URL /~user/login2.html.<P>
</BODY></HTML>
0
Connection closed by foreign host.
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-686-smp
Locale: LANG=sv_SE, LC_CTYPE=sv_SE (charmap=ISO-8859-1)
Reply to: