Control Web Panel

WebPanel => CentOS Configuration => Topic started by: dippic on June 15, 2021, 03:54:44 AM

Title: Webdav url work on web browser, but webdav client or file explorer on window.
Post by: dippic on June 15, 2021, 03:54:44 AM
Something on Centos Web Panel blocks access from file explorer on window or Linux or WebDAV client. When I put webdav URL on web browser it working fine. but I can't login (connect) from any window or Linux client like file explorer or webdav client.
mod_security = off, firewall = off.
Any suggestion how to fix this?
Title: Re: Webdav url work on web browser, but webdav client or file explorer on window.
Post by: josephgodwinke on June 15, 2021, 09:45:41 AM
Have you assigned group ownership of the
Code: [Select]
.htpasswd to the the webdav user
Title: Re: Webdav url work on web browser, but webdav client or file explorer on window.
Post by: dippic on June 16, 2021, 09:25:39 AM
I dont know how to do it. Can you show me how?
Title: Re: Webdav url work on web browser, but webdav client or file explorer on window.
Post by: josephgodwinke on June 16, 2021, 06:39:56 PM
Assuming you have created a WebDav directory under Apache change permissions for this folder for the user
Code: [Select]
apache
Next secure the WebDav directory by creating a password file
Code: [Select]
sudo htpasswd -c /etc/httpd/.htpasswd myuser
Replace
Code: [Select]
myuser with the username you prefer for the login

Lastly assign group ownership of htpasswd to the
Code: [Select]
apache user
Code: [Select]
sudo chown root:apache /etc/httpd/.htpasswd
Configure an apache vhost so that the WebDav directory is accessible to the web.

Restart CWP services or just restart Apache and you are good to go.

Title: Re: Webdav url work on web browser, but webdav client or file explorer on window.
Post by: dippic on June 16, 2021, 10:58:42 PM
my WebDAV directory can access from a web browser (chrome, firefox...etc) and log in normally with username and password. But still can't connect through WebDAV client or map network drive on file explorer.