Nagatoro wrote:
>Hi,
>
>I've tried to get PUT to work on my apache2 box (standard Gentoo 2005.0
>install) but it won't play nicely with me.
>I've seen two threads on the forum
>(http://forums.gentoo.org/viewtopic-t-300413-start-0-postdays-0-postorder-asc-highlight-apache+2+405.html
>and
>http://forums.gentoo.org/viewtopic-t-309069-start-0-postdays-0-postorder-asc-highlight-apache2+upload.html).
>
>They seem to sugest that I put something in the line of
>
><Directory /var/www/localhost/htdocs/backups>
> AllowOverride All
> Options All Multiviews
> <Limit PUT>
> Order deny,allow
> Allow from all
> </Limit>
></Directory>
>
>in my config. Along with
>
>AllowOverride All "or Limit"
>
>in the "/" directory. But I still get this reply from apache:
>
>HTTP/1.1 405 Method Not Allowed
>Date: Thu, 23 Jun 2005 08:30:51 GMT
>Server: Apache/2.0.54 (Gentoo/Linux) mod_ssl/2.0.54 OpenSSL/0.9.7e
>PHP/4.3.11
>Allow: GET,HEAD,POST,OPTIONS,TRACE
>Content-Length: 370
>Keep-Alive: timeout=15, max=100
>Connection: Keep-Alive
>Content-Type: text/html; charset=iso-8859-1
>
><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
><html><head>
><title>405 Method Not Allowed</title>
></head><body>
><h1>Method Not Allowed</h1>
><p>The requested method PUT is not allowed for the URL
>/backups/firefox_bookmarks-xbel.xml.</p>
><hr>
><address>Apache/2.0.54 (Gentoo/Linux) mod_ssl/2.0.54 OpenSSL/0.9.7e
>PHP/4.3.11 Server at dx Port 80</address>
></body></html>
>
>
>I've no ideas left :( can some one please help?
>
>My full config is at http://dx.homelinux.org/apache2-fixed.conf (all
>config files in one with the comment stripped for size, but the order
>apache reads them).
>
>/Regards Naga
>
>
Try changing your allow, deny stting to this
<Limit PUT>
Order allow,deny
Allow from all
</Limit>
<LimitExcept PUT>
Order deny,allow
deny from all
</LimitExcept>
--
[email protected] mailing list