Версия My Pi:
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux
Apache версия установлена на Pi:
pi@raspberrypi:~ $ apache2 -version
Server version: Apache/2.4.25 (Raspbian)
Server built: 2019-10-13T15:43:54
Веб-сервер успешно обслуживает сайт WordPress на http://localhost. Я пытаюсь включить доступ на основе WebDAV одновременно. У меня настроены следующие два сайта:
pi@raspberrypi:/etc/apache2/sites-available $ pwd
/etc/apache2/sites-available
pi@raspberrypi:/etc/apache2/sites-available $ cat 000-default.conf
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
pi@raspberrypi:/etc/apache2/sites-available $ cat 001-default.conf
DavLockDB /usr/local/apache2/var/DavLock
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/web1/web/
<Directory /var/www/web1/web/>
DAV On
Options Indexes MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
Alias /webdav /var/www/web1/web
<Location /webdav>
AuthType Basic
AuthName "webdav"
AuthUserFile /var/www/web1/passwd.dav
Require valid-user
</Location>
</VirtualHost>
Я вижу загруженные два сайта:
pi@raspberrypi:/etc/apache2/sites-available $ pwd
/etc/apache2/sites-available
pi@raspberrypi:/etc/apache2/sites-available $ apachectl -D DUMP_VHOSTS
AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/sites-enabled/001-default.conf:2
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
VirtualHost configuration:
*:80 127.0.1.1 (/etc/apache2/sites-enabled/000-default.conf:1)
*:* 127.0.1.1 (/etc/apache2/sites-enabled/001-default.conf:3)
pi@raspberrypi:/etc/apache2/sites-available $
Однако труп не может связаться с webDAV:
pi@raspberrypi:/etc/apache2/sites-available $ cadaver http://localhost/webdav/
Could not access /webdav/ (not WebDAV-enabled?):
405 Method Not Allowed
Connection to `localhost' closed.
dav:!>
Что я делаю не так?