Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


centos7_webdav

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
centos7_webdav [2017/01/09 14:26] – [Configuration] admincentos7_webdav [2017/01/09 19:00] admin
Line 19: Line 19:
  dav_fs_module (shared)  dav_fs_module (shared)
  dav_lock_module (shared)  dav_lock_module (shared)
 +</code>
 +  * Enable the headers module (for HSTS), create ''/etc/httpd/conf.modules.d/00-headers.conf''<code>
 +LoadModule headers_module modules/mod_headers.so
 </code> </code>
  
Line 100: Line 103:
 # generate password with pwgen # generate password with pwgen
 </code> </code>
-  * Change SELinux policy:<code>+  * Change SELinux policy for write access to WebDAV directory:<code>
 yum install policycoreutils-python yum install policycoreutils-python
 semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/html/user-a(/.*)?" semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/html/user-a(/.*)?"
Line 108: Line 111:
 firewall-cmd --reload</code> firewall-cmd --reload</code>
 ====Test==== ====Test====
 +  * For example from Gnome Nautilus.
centos7_webdav.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1