This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

[HOW-To] WebDAV

Webserver service.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
Andy22
Starter
Starter
Posts: 54
Joined: 22 Feb 2014 17:16
Status: Offline

[HOW-To] WebDAV

Post by Andy22 »

Hi,

here is a short guide on how to setup WebDAV for the current 9.2 release. (Was only tested on a none embedded install)

1) Create your webroot folder "www" and add a subfolder named "dav", we use "/mnt/www/dav/" for this example. Change the owner for those 2 folders (www, dav) to the "www" user.
2) go-to: Services->Webserver and enter/select your "Document root" location, we select "/mnt/www/" for this example. Make sure it has the last "/" at the end of the path!
3) Change your "Upload directory" to a location on a persistent disk with enough space, this folder will be used by the webdav for temporary/partial uploads.
4) Copy and paste this into the "Auxiliary parameters":

Code: Select all

############ WEBDAV ################
server.modules += ( "mod_webdav")
$HTTP["url"] =~ "^/dav($|/)" { 
  webdav.activate = "enable"
  webdav.sqlite-db-name = "/tmp/lighttpd.webdav_lock.db"
}
5) Change/make sure we have "Run As" set to the "www" user and start the webserver.
6) Verify that we now have a "/tmp/lighttpd.webdav_lock.db" file.

Optional, but recommend:
7) Create a "webdav" user that has "www" as "Primary group" and uses the "nologin" shell.
8) Enable "Authentication" in the Webserver service panel and add the "/dav" as path and use something like "WebDAV" as realm.
9) Restart and check if u now need to login to access the "http://mydomain.com/dav" folder.
10) If u only want the WebDAV to work, change the port of the webserver and/or enable https, but u than need to use "http://mydomain.com:port/dav" or "https://mydomain.com/dav".
NOTE: Any valid user can be used as login, but it is recommend to only use the newly created webdav user.

Now u should be able to use the WebDav.
On windows/mac u can now use tools like Cyberduck or Expandrive to directly access/mount the dav folder. (Windows WebFolders or the total commander "WebDAV" plugin works too)

bye
Andy

PS: If all worked correctly and u now "mount" the dav via a compatible client software, u should be able to directly play/stream/seek a .mkv/.avi videofile, without the need to completely download the file first.
NOTE: Streaming capabilities depend on the used client software, davfs2/windows webFolders seem not to support block-level aka streaming access. This means davfs2/webfolders will download the whole file before it is presented to the opening application, so direct, fast streaming will not work. For Windows WebFolders/Mount as Network drive u also need a registry tweak http://www.scotttyee.com/blog/2011/07/2 ... windows-7/

Commercially available mounting tools like Expandrive/Netdrive/Webdrive do support direct streaming and block-level access.
If u know any free tools that support mounts + streaming at a good speed, plz leave a comment. So far Webdrive is by far the fastest in my tests on Win7.
Last edited by Andy22 on 14 Mar 2014 16:07, edited 13 times in total.

Andy22
Starter
Starter
Posts: 54
Joined: 22 Feb 2014 17:16
Status: Offline

Re: [HOW-To] WebDAV

Post by Andy22 »

Just a quick update to restrict the webDAV to only the "webdav" user.

Code: Select all

############ WEBDAV ################
server.modules += ( "mod_webdav")
$HTTP["url"] =~ "^/dav($|/)" { 
  webdav.activate = "enable"
  webdav.sqlite-db-name = "/tmp/lighttpd.webdav_lock.db"

  auth.backend = "htpasswd"
  auth.backend.htpasswd.userfile = "/mnt/www/.websrv_htpasswd"
  auth.require = ( "" =>
                                 (
                                     "method"  => "basic",
                                     "realm"   => "webDAV",
                                     "require" => "user=webdav" 
                                  )
                         )
}
U can add more users and use those like:

Code: Select all

"require" => "user=webdav|user=webdav3|user=lucywww"
bye
Andy

matematikom
NewUser
NewUser
Posts: 4
Joined: 03 Apr 2014 17:31
Status: Offline

Re: [HOW-To] WebDAV

Post by matematikom »

Hi Andy,

I followed your steps in order to set up webdav for owncloud, but it still says that webdav is not working in the webserver. Could be because I have an embedded OS instead of full installation?

I am pretty lost on the configuration for Lightppd and BSD, so thank you for your help in advance.

Andy22
Starter
Starter
Posts: 54
Joined: 22 Feb 2014 17:16
Status: Offline

Re: [HOW-To] WebDAV

Post by Andy22 »

mhh i changed the db to "/tmp", which should also work on embedded. What error/log info u get? Try start lighttpd manually via "/etc/rc.d/websrv restart".

matematikom
NewUser
NewUser
Posts: 4
Joined: 03 Apr 2014 17:31
Status: Offline

Re: [HOW-To] WebDAV

Post by matematikom »

Hi Andy, I finally decided to install full OS in a small hard disk I had. After this, everything is working fine. In fact my owncloud client is sync perfect. Thanks a lot

ArthurGordon
NewUser
NewUser
Posts: 2
Joined: 08 Oct 2014 15:09
Status: Offline

Re: [HOW-To] WebDAV

Post by ArthurGordon »

Hi matematikom,
Hi Andy,

i've quite the same problem with the webdav interface on my owncloud server within my nas4free full install.
My owncloud (webserver root) directory on the web server is /var/www/owncloud.
Regarding to your steps above and my owncloud directory, i set my upload directory in the nas4free webserver settings to "/var/www/owncloud/upload"
and changed your webdav code to "$HTTP["url"] =~ "^/upload($|/)" { "

Bit i still get the same message in owncloud server that the webday interface might be broken.

Doloro
NewUser
NewUser
Posts: 1
Joined: 28 Jun 2018 14:29
Status: Offline

Re: [HOW-To] WebDAV

Post by Doloro »

hi Andy

I follow your guide and succeeding in connecting the webdav server. however I cannot connect it if I use https. would you please modify the auxiliary parameters for enabling https?

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOW-To] WebDAV

Post by raulfg3 »

post to developer; add webdav as default service, must be very good for home users.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

User avatar
ms49434
Developer
Developer
Posts: 828
Joined: 03 Sep 2015 18:49
Location: Neuenkirchen-Vörden, Germany - GMT+1
Contact:
Status: Offline

Re: [HOW-To] WebDAV

Post by ms49434 »

raulfg3 wrote:
09 Sep 2018 18:17
post to developer; add webdav as default service, must be very good for home users.
some basic stuff has been added: https://sourceforge.net/p/xigmanas/code/5987/
1) XigmaNAS 12.1.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7U3, 22GB out of 32GB ECC RAM, LSI 9300-8i IT mode in passthrough mode. Pool 1: 2x HGST 10TB, mirrored, L2ARC: Samsung 850 Pro; Pool 2: 1x Samsung 860 EVO 1TB, SLOG: Samsung SM883, services: Samba AD, CIFS/SMB, ftp, ctld, rsync, syncthing, zfs snapshots.
2) XigmaNAS 12.1.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7U3, 8GB out of 32GB ECC RAM, IBM M1215 crossflashed, IT mode, passthrough mode, 2x HGST 10TB , services: rsync.

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOW-To] WebDAV

Post by raulfg3 »

need help to test.

I want to share a video folder and a music folder

there are located at

/mnt/RPool/Musica

and

/mnt/RPool/Video

How I need to fill Folder Pattern in new webGUI and How to configure webserver.


my aditionally parameter in webserver webGUI are:

Code: Select all

############ WEBDAV ################
server.modules += ( "mod_webdav")
$HTTP["url"] =~ "^/Video($|/)" { 
  webdav.activate = "enable"
  webdav.sqlite-db-name = "/tmp/lighttpd.webdav_lock.db"
  auth.backend = "htpasswd"
  auth.backend.htpasswd.userfile = "/mnt/RPool/.websrv_htpasswd"
  auth.require = ( "" => 
                                 (
"method"  => "basic",
"realm"   => "webdav",
"require" => "user=yyyyy|user=xxxxx" 
                                  )
                         )
}
You do not have the required permissions to view the files attached to this post.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

User avatar
ms49434
Developer
Developer
Posts: 828
Joined: 03 Sep 2015 18:49
Location: Neuenkirchen-Vörden, Germany - GMT+1
Contact:
Status: Offline

Re: [HOW-To] WebDAV

Post by ms49434 »

The web server root must be above Video and Musica folders, therefore webroot is /mnt/RPool:
services_websrv.php.png
Video and Musica use the same authentication database, we can address both using one webdav configuaration record:
services_websrv_webdav_edit.php.png
Access to Video is http://webserver:81/Video
Access to Music is http://webserver:81/Musica
You do not have the required permissions to view the files attached to this post.
1) XigmaNAS 12.1.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7U3, 22GB out of 32GB ECC RAM, LSI 9300-8i IT mode in passthrough mode. Pool 1: 2x HGST 10TB, mirrored, L2ARC: Samsung 850 Pro; Pool 2: 1x Samsung 860 EVO 1TB, SLOG: Samsung SM883, services: Samba AD, CIFS/SMB, ftp, ctld, rsync, syncthing, zfs snapshots.
2) XigmaNAS 12.1.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7U3, 8GB out of 32GB ECC RAM, IBM M1215 crossflashed, IT mode, passthrough mode, 2x HGST 10TB , services: rsync.

User avatar
Snufkin
Advanced User
Advanced User
Posts: 317
Joined: 01 Jul 2012 11:27
Location: Etc/GMT-3 (BSD style)
Status: Offline

Re: [HOW-To] WebDAV using Nexcloud extension

Post by Snufkin »

ms49434, raulfg3
Just finished testing a little bit monstrous workaround to gain access to XigmaNAS file system via WebDAV. The idea was to utilize Nextcloud built-in feature Accessing files using WebDAV.
And it works!
  1. In Nexcloud External Storage Support application there is an option to choose XNAS itself as the external storage.
  2. After changes applied directory becomes visible in Nextcloud UI and not syncronized to mobile/desktop clients by default.
  3. WebDAV link is simple and could be seen in Settings area of Nexcloud file manager

    Code: Select all

    http://<XNAS IP>:<Nextcloud WebUI port>/nextcloud/remote.php/webdav/
  4. Standard http(80)/https(443) ports allow to use even built-in Windows WebDAV client.
Due to non-standard ports in my configuration I did tests in WinSCP multi protocol client.
XNAS 11.4.0.4 embedded, ASUS P5B-E, Intel DC E6600, 4 GB DDR2
ZFS 2 x HGST HDN726040ALE614, L2ARC PLEXTOR PX-128M5S

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOW-To] WebDAV

Post by raulfg3 »

OK, tested and working, I can mount webdav resources on Win10 (in read only mode), I need more time to manage in ful read/write mode, but is promissing.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOW-To] WebDAV

Post by raulfg3 »

update: I can acces to http://MyHostIP:port and do not ask for password ( so I gain access to document root) and http://MyHostIP:port/Video or http://MyHostIP:port/Musica, and both ask for password like is expected.

so my question is: How to protect document root so ask for password too?.

(I suppose that need to add some code to aditional parameter, but not sure what code)
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

User avatar
ms49434
Developer
Developer
Posts: 828
Joined: 03 Sep 2015 18:49
Location: Neuenkirchen-Vörden, Germany - GMT+1
Contact:
Status: Offline

Re: [HOW-To] WebDAV

Post by ms49434 »

raulfg3 wrote:
15 Sep 2018 22:56
update: I can acces to http://MyHostIP:port and do not ask for password ( so I gain access to document root) and http://MyHostIP:port/Video or http://MyHostIP:port/Musica, and both ask for password like is expected.

so my question is: How to protect document root so ask for password too?.

(I suppose that need to add some code to aditional parameter, but not sure what code)
Add / to directories that require authentication.
1) XigmaNAS 12.1.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7U3, 22GB out of 32GB ECC RAM, LSI 9300-8i IT mode in passthrough mode. Pool 1: 2x HGST 10TB, mirrored, L2ARC: Samsung 850 Pro; Pool 2: 1x Samsung 860 EVO 1TB, SLOG: Samsung SM883, services: Samba AD, CIFS/SMB, ftp, ctld, rsync, syncthing, zfs snapshots.
2) XigmaNAS 12.1.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7U3, 8GB out of 32GB ECC RAM, IBM M1215 crossflashed, IT mode, passthrough mode, 2x HGST 10TB , services: rsync.

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOW-To] WebDAV

Post by raulfg3 »

works like a charm, I successfully mount Video webdav in read/write mode in my windows10 , so it's fully functional, and bottleneck is the ISP bandwidth
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

744700595
experienced User
experienced User
Posts: 76
Joined: 09 Mar 2017 01:30
Status: Offline

Re: [HOW-To] WebDAV

Post by 744700595 »

I recently tested this WebDAV function and found some problems.
111.png
1, what does 11/5000 mean in Chinese translation? I do not see these figures in English.
222.png
2. WIN7 uses the HTTP protocol to connect to WebDAV services normally, but the size of the space it looks at is not very problematic. I now use an 8G TF card to run, and the da0p4 partition only has 5.9G of space, while the win7 shows 55G of space out. What is the problem?
333.png
3, using HTTPS protocol can not connect to WebDAV services, win7 pop-up three certificate prompts, the direct error, "connected to the device on the system does not play a role," but HTTP protocol does not have this problem. Third party software access temporarily found no problem with HTTPS.
You do not have the required permissions to view the files attached to this post.
Favorite to kill the red devil
FreeBSD users from China. English is limited and posted using Google Translate. If the expression is not clear, please forgive me!

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOW-To] WebDAV

Post by raulfg3 »

please in future post screen captures in english, it's difficult to see info on chinese for foreing readers.

to 2 : Revise path that you are sharing as root by webdav is not the same to share /mnt/myPool/Myvideos, that share /mnt or /mnt/mypool <- in this 2 last cases free space show by windows is the free space of your boot device , not the free space on your data disk.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

744700595
experienced User
experienced User
Posts: 76
Joined: 09 Mar 2017 01:30
Status: Offline

Re: [HOW-To] WebDAV

Post by 744700595 »

raulfg3 wrote:
27 Sep 2018 12:46
please in future post screen captures in english, it's difficult to see info on chinese for foreing readers.

to 2 : Revise path that you are sharing as root by webdav is not the same to share /mnt/myPool/Myvideos, that share /mnt or /mnt/mypool <- in this 2 last cases free space show by windows is the free space of your boot device , not the free space on your data disk.
Which part of your English screenshots do you need?
To 2:, do you say "guide space"? Then I don't understand. I only use 8G TF card to install NAS OS, how can I not calculate all the total 55.4GB?

Have you tested HTTPS WebDAV access with windows?
Favorite to kill the red devil
FreeBSD users from China. English is limited and posted using Google Translate. If the expression is not clear, please forgive me!

User avatar
ms49434
Developer
Developer
Posts: 828
Joined: 03 Sep 2015 18:49
Location: Neuenkirchen-Vörden, Germany - GMT+1
Contact:
Status: Offline

Re: [HOW-To] WebDAV

Post by ms49434 »

744700595 wrote:
27 Sep 2018 10:03
I recently tested this WebDAV function and found some problems.
111.png
1, what does 11/5000 mean in Chinese translation? I do not see these figures in English.

222.png
2. WIN7 uses the HTTP protocol to connect to WebDAV services normally, but the size of the space it looks at is not very problematic. I now use an 8G TF card to run, and the da0p4 partition only has 5.9G of space, while the win7 shows 55G of space out. What is the problem?

333.png
3, using HTTPS protocol can not connect to WebDAV services, win7 pop-up three certificate prompts, the direct error, "connected to the device on the system does not play a role," but HTTP protocol does not have this problem. Third party software access temporarily found no problem with HTTPS.
1: "WebDAV Name" (en) was translated to "11/5000 WebDAV名称" (simplified chinese) on launchpad. This has been corrected.
1) XigmaNAS 12.1.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7U3, 22GB out of 32GB ECC RAM, LSI 9300-8i IT mode in passthrough mode. Pool 1: 2x HGST 10TB, mirrored, L2ARC: Samsung 850 Pro; Pool 2: 1x Samsung 860 EVO 1TB, SLOG: Samsung SM883, services: Samba AD, CIFS/SMB, ftp, ctld, rsync, syncthing, zfs snapshots.
2) XigmaNAS 12.1.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7U3, 8GB out of 32GB ECC RAM, IBM M1215 crossflashed, IT mode, passthrough mode, 2x HGST 10TB , services: rsync.

744700595
experienced User
experienced User
Posts: 76
Joined: 09 Mar 2017 01:30
Status: Offline

Re: [HOW-To] WebDAV

Post by 744700595 »

ms49434 wrote:
27 Sep 2018 13:02
744700595 wrote:
27 Sep 2018 10:03
I recently tested this WebDAV function and found some problems.
111.png
1, what does 11/5000 mean in Chinese translation? I do not see these figures in English.

222.png
2. WIN7 uses the HTTP protocol to connect to WebDAV services normally, but the size of the space it looks at is not very problematic. I now use an 8G TF card to run, and the da0p4 partition only has 5.9G of space, while the win7 shows 55G of space out. What is the problem?

333.png
3, using HTTPS protocol can not connect to WebDAV services, win7 pop-up three certificate prompts, the direct error, "connected to the device on the system does not play a role," but HTTP protocol does not have this problem. Third party software access temporarily found no problem with HTTPS.
1: "WebDAV Name" (en) was translated to "11/5000 WebDAV名称" (simplified chinese) on launchpad. This has been corrected.
Thank
Favorite to kill the red devil
FreeBSD users from China. English is limited and posted using Google Translate. If the expression is not clear, please forgive me!

744700595
experienced User
experienced User
Posts: 76
Joined: 09 Mar 2017 01:30
Status: Offline

Re: [HOW-To] WebDAV

Post by 744700595 »

Are there any restrictions on the size of uploaded files? I found an error when uploading files larger than 10MB, but the files continued to be uploaded to the server. I checked MD5, and the two were the same.
I changed the server.max-request-size in the startup script by 100 times, and the same error occurred.
11.png
You do not have the required permissions to view the files attached to this post.
Favorite to kill the red devil
FreeBSD users from China. English is limited and posted using Google Translate. If the expression is not clear, please forgive me!

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOW-To] WebDAV

Post by raulfg3 »

744700595 wrote:
27 Sep 2018 12:58
raulfg3 wrote:
27 Sep 2018 12:46
please in future post screen captures in english, it's difficult to see info on chinese for foreing readers.

to 2 : Revise path that you are sharing as root by webdav is not the same to share /mnt/myPool/Myvideos, that share /mnt or /mnt/mypool <- in this 2 last cases free space show by windows is the free space of your boot device , not the free space on your data disk.
Have you tested HTTPS WebDAV access with windows?
yes, but in my case I use webdav behind a reverse proxy so https is from reverse proxy (to use letsencrypt cert.) not from webdav that is http from his side.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

User avatar
ms49434
Developer
Developer
Posts: 828
Joined: 03 Sep 2015 18:49
Location: Neuenkirchen-Vörden, Germany - GMT+1
Contact:
Status: Offline

Re: [HOW-To] WebDAV

Post by ms49434 »

744700595 wrote:
27 Sep 2018 13:44
Are there any restrictions on the size of uploaded files? I found an error when uploading files larger than 10MB, but the files continued to be uploaded to the server. I checked MD5, and the two were the same.
I changed the server.max-request-size in the startup script by 100 times, and the same error occurred.

11.png
ensure Upload Directory exists and has sufficient free space. The setting is available on the WebGUI (Services > Webserver) and is populated into lighttpd's variable server.upload-dirs.
1) XigmaNAS 12.1.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7U3, 22GB out of 32GB ECC RAM, LSI 9300-8i IT mode in passthrough mode. Pool 1: 2x HGST 10TB, mirrored, L2ARC: Samsung 850 Pro; Pool 2: 1x Samsung 860 EVO 1TB, SLOG: Samsung SM883, services: Samba AD, CIFS/SMB, ftp, ctld, rsync, syncthing, zfs snapshots.
2) XigmaNAS 12.1.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7U3, 8GB out of 32GB ECC RAM, IBM M1215 crossflashed, IT mode, passthrough mode, 2x HGST 10TB , services: rsync.

744700595
experienced User
experienced User
Posts: 76
Joined: 09 Mar 2017 01:30
Status: Offline

Re: [HOW-To] WebDAV

Post by 744700595 »

ms49434 wrote:
28 Sep 2018 13:21
744700595 wrote:
27 Sep 2018 13:44
Are there any restrictions on the size of uploaded files? I found an error when uploading files larger than 10MB, but the files continued to be uploaded to the server. I checked MD5, and the two were the same.
I changed the server.max-request-size in the startup script by 100 times, and the same error occurred.

11.png
ensure Upload Directory exists and has sufficient free space. The setting is available on the WebGUI (Services > Webserver) and is populated into lighttpd's variable server.upload-dirs.

I basically found the reason. The TF card I used was not fast enough. The file has been uploaded to the uploaded directory and split into a 1MB file. After uploading, lighttpd merges these split files and writes them to the WebDAV directory managed by login. If the file is large enough and the media is not written fast enough to complete the write in time, the client returns an error message. But in fact, the files have been uploaded to the server.
So, this connection is out of time, I wonder if I can change it.
I read the document of lighttpd, and did not mention the method of WebDAV uploading file size restriction.
Favorite to kill the red devil
FreeBSD users from China. English is limited and posted using Google Translate. If the expression is not clear, please forgive me!

744700595
experienced User
experienced User
Posts: 76
Joined: 09 Mar 2017 01:30
Status: Offline

Re: [HOW-To] WebDAV

Post by 744700595 »

If you can add a user management to the WebDAV page, you can directly specify which users are allowed to access the WebDAV connection
And WebDAV name can not use spaces.
Favorite to kill the red devil
FreeBSD users from China. English is limited and posted using Google Translate. If the expression is not clear, please forgive me!

User avatar
ms49434
Developer
Developer
Posts: 828
Joined: 03 Sep 2015 18:49
Location: Neuenkirchen-Vörden, Germany - GMT+1
Contact:
Status: Offline

Re: [HOW-To] WebDAV

Post by ms49434 »

744700595 wrote:
28 Sep 2018 14:10
If you can add a user management to the WebDAV page, you can directly specify which users are allowed to access the WebDAV connection
And WebDAV name can not use spaces.
a) use Additional Parameters in webdav as a workaround
b) Blanks are evil ;)
1) XigmaNAS 12.1.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7U3, 22GB out of 32GB ECC RAM, LSI 9300-8i IT mode in passthrough mode. Pool 1: 2x HGST 10TB, mirrored, L2ARC: Samsung 850 Pro; Pool 2: 1x Samsung 860 EVO 1TB, SLOG: Samsung SM883, services: Samba AD, CIFS/SMB, ftp, ctld, rsync, syncthing, zfs snapshots.
2) XigmaNAS 12.1.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7U3, 8GB out of 32GB ECC RAM, IBM M1215 crossflashed, IT mode, passthrough mode, 2x HGST 10TB , services: rsync.

Post Reply

Return to “WebServer”