CentOS 9 Apache HTTPS WebDAV 非标准端口配置¶
1. Create a self-signed cert¶
Issue a self-signed cert with this command:
Remember to change ipv6.webdav.hxp.plus to your server FQDN.
2. Configure the WebDAV directory¶
For Apache, there are three WebDAV-related modules which will be loaded by default when a Apache web server getting started. You can confirm that with this command:
You should be presented with:
Then install the apache ssl module by:
Next, create a dedicated directory for WebDAV:
and change the ownership of /var/www/html/:
3. Create a user hxp for authentication¶
4. Create a VHost for WebDAV¶
Firstly, add
to your /etc/httpd/conf/httpd.conf, then
Create a new file /etc/httpd/conf.d/webdav.conf:
5. Restart Apache¶
6. References¶
https://devops.ionos.com/tutorials/how-to-set-up-webdav-with-apache-on-centos-7.html#:~:text=WebDAV%20(Web%2Dbased%20Distributed%20Authoring,on%20an%20Apache%20web%20server. https://www.vultr.com/docs/how-to-setup-a-webdav-server-using-apache-on-centos-7/ https://www.digitalocean.com/community/tutorials/how-to-create-a-self-signed-ssl-certificate-for-apache-in-ubuntu-16-04