apt-get update
apt-get install apache2 apache2-utils sudo -y
sudo a2enmod dav
sudo a2enmod dav_fs
nano /etc/apache2/sites-available/000-default.conf
Alias /webdav /home/gdrive-b01
<Location /webdav>
Options Indexes
DAV On
AuthType Basic
AuthName "webdav"
AuthUserFile /etc/apache2/webdav.password
Require valid-user
</Location>
sudo htpasswd -c /etc/apache2/webdav.password admin
nano /etc/apache2/ports.conf
41114
systemctl restart apache2
没有评论:
发表评论