Zotero
2014/12/09 zotero webdav nginx apacheZotero is an Open Source tool that lets you organise your bibliography, syncing it with the cloud. Unlike other alternatives such as Mendeley, Zotero can upload the attachments and data to a private cloud via WebDav.
If you use nginx as your web server, know that even though it provides partial support for webdav, Zotero needs more than that. Hence, you will need another webdav server, and optionally let nginx proxy to it. This short post provides the basics to get that set-up working under Debian/Ubuntu.
Setting up Apache
First we need to install Apache:
|
|
Change the head of “/etc/apache2/sites-enabled/000-default” to:
|
|
Then, create a file /etc/apache2/sites-available/webdav:
|
|
Ideally, you want your webdav folders to be private, adding authentication to them. So you need to create the webdav and zotero users and add the passwords to an htpasswd file. Even though you could use a single user, since you will be configuring several clients with your credentials I encourage you to create the zotero user as well. This way you can always change the password for zotero without affecting any other application using webdav.
|
|
Enable the site and restart apache:
|
|
At this point everything should be working at http://<your_host>:880/dav/zotero
Setting up NGINX
After the Apache side is working, we can use nginx as a proxy to get cleaner URIs. In your desired site/location, add this:
|
|
Now just reload nginx:
|
|
Extras
- Zotero Reader - HTML5 client
- Zandy - Android Open Source client