czwartek, kwietnia 01, 2021

How to create WebDAV on Red Hat 8.3

yum install httpd mod_dav apr-util-bdb policycoreutils-python-utils

htdigest -c /etc/httpd/users.password webdav user

vi /etc/httpd/conf.d/webdav.conf


DAVLockDB /var/lib/dav/lockdb

Alias /webdav /home/webdav

<Location /webdav>

    DAV On

    SSLRequireSSL

    Options None

    AuthType Digest

    AuthName webdav

    AuthUserFile /etc/httpd/users.password

    Require valid-user

</Location>


mkdir /home/webdav && chown apache:apache /home/webdav

chcon -R -t httpd_sys_rw_content_t /home/webdav

semanage fcontext -a -t httpd_sys_rw_content_t /home/webdav

firewall-cmd --add-service=https --permanent

firewall-cmd --reload

systemctl enable httpd

systemctl start httpd

0 komentarze: