Set Up WebDAV Storage
In multi-user mode, ELN3 stores file attachments and preview thumbnails on a WebDAV server. This guide covers setting up WebDAV for your team.
How ELN3 Uses WebDAV
- File attachments are uploaded via HTTP PUT with Basic Auth
- Files are organized as
files/Projects/<User>/<Project>/<Item>/<File> - Preview thumbnails are stored under
previews/ - When a user opens a file, a local temporary copy is downloaded. Modified files are uploaded back automatically on save.
Option A: Synology NAS
Install WebDAV Server
- Open DSM > Package Center
- Search for WebDAV Server and install it
- Open WebDAV Server from the main menu
- Enable HTTPS (port 5006) — recommended over HTTP
- Note the port number
Create a shared folder
- Go to DSM > Control Panel > Shared Folder
- Click Create, name it
eln3files - Optionally hide it from network browsing
- Do not enable the Recycle Bin — ELN3 manages its own deletions
Create a dedicated user
- Go to DSM > Control Panel > User & Group
- Click Create, name the user
eln3webdav - Set a strong password
- On the Permissions tab, grant Read/Write access to
eln3files - Deny access to all other shared folders
- On the Applications tab, ensure WebDAV Server is allowed
ELN3 connection settings
| Setting | Value |
|---|---|
| WebDAV URL | https://<NAS-IP>:5006/eln3files/ |
| WebDAV User | eln3webdav |
| WebDAV Password | (the password you set) |
Important: Include the trailing slash in the URL. ELN3 appends relative paths directly to the base URL.
Option B: Apache with mod_dav
On a Linux server with Apache:
sudo a2enmod dav dav_fs
sudo mkdir -p /var/eln3files
sudo chown www-data:www-data /var/eln3files
Add to your Apache site configuration:
<VirtualHost *:443>
ServerName eln3.lab.local
DocumentRoot /var/eln3files
DavLockDB /var/lock/apache2/DAVLock
<Directory /var/eln3files>
Dav On
AuthType Basic
AuthName "ELN3 Files"
AuthUserFile /etc/apache2/eln3.htpasswd
Require valid-user
</Directory>
SSLEngine on
SSLCertificateFile /path/to/cert.pem
SSLCertificateKeyFile /path/to/key.pem
</VirtualHost>
Create the WebDAV user:
sudo htpasswd -c /etc/apache2/eln3.htpasswd eln3webdav
Option C: IIS on Windows Server
- Open Server Manager > Add Roles and Features
- Under Web Server (IIS) > Common HTTP Features, enable WebDAV Publishing
- Create a folder (e.g.,
C:\ELN3Files) and grant IIS_IUSRS full control - In IIS Manager, add a virtual directory pointing to the folder
- Enable WebDAV Authoring Rules and add an Allow rule for the ELN3 user
- Enable Basic Authentication under Authentication
Verify the Setup
Test WebDAV access from a browser or command line:
curl -u eln3webdav:password https://<server>:5006/eln3files/
You should get a directory listing or a 200/207 response (not 401 or 404).
Firewall
Allow the WebDAV port (5006 for Synology, 443 for Apache/IIS) from your LAN subnet. Do not expose to the internet without a VPN.
Backup
Back up the WebDAV file storage folder regularly:
| Platform | Method |
|---|---|
| Synology | Hyper Backup the eln3files shared folder |
| Linux | rsync or scheduled tar of /var/eln3files |
| Windows | Windows Server Backup or robocopy script |
Next Steps
- Set Up Multi-User Mode — connect ELN3 to MySQL and WebDAV