Re: Apache allowed OPTIONS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Thanx for the below.
I tried this approach but still no luck.

I have the following at apache:

DavLockDB /var/www/DavLock

<VirtualHost *:80>
        DocumentRoot /var/www/html
        ServerAdmin webmaster@localhost

        <Directory /var/www/html/>
                Options Indexes FollowSymLinks MultiViews
                allow from all
        </Directory>

        Alias /webdav /var/www/html/webdav

        <Directory /var/www/html/webdav>
                AllowMethods PUT GET POST GET HEAD POST DELETE TRACE PROPFIND PROPPATCH COPY MOVE LOCK UNLOCK OPTIONS
                AllowOverride All
                DAV On
                AuthType Basic
                AuthName "webdav"
                AuthUserFile /etc/apache2/.htpasswd
                Require valid-user
#               allow from all
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>



Using cadaver client I am able to list, upload and delete files.

When checking with curl I still see the PUT method not advertised. Is this normal that apache will never say it has PUT?

curl -sI -X OPTIONS http://169.254.254.55/webdav/
HTTP/1.1 200 OK
Date: Fri, 15 Jun 2018 01:40:29 GMT
Server: Apache/2.2.22 (Debian)
DAV: 1,2
DAV: <http://apache.org/dav/propset/fs/1>
MS-Author-Via: DAV
Allow: OPTIONS,GET,HEAD,POST,DELETE,TRACE,PROPFIND,PROPPATCH,COPY,MOVE,LOCK,UNLOCK
Content-Length: 0
Content-Type: httpd/unix-directory



Thanx,
Alex

On Wed, Jun 13, 2018 at 11:08 PM, Yann Ylavic <ylavic.dev@xxxxxxxxx> wrote:
On Wed, Jun 13, 2018 at 6:18 PM, Alex K <rightkicktech@xxxxxxxxx> wrote:
>
> Is there any way to make apache list the PUT options as available?

Probaly AllowMethods
(https://httpd.apache.org/docs/current/en/mod/mod_allowmethods.html#allowmethods).

Regards,
Yann.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux