File: examples/nginx/README.md

Recommend this page to a friend!
  Classes of Dom Hastings   JS Webdav Client   examples/nginx/README.md   Download  
File: examples/nginx/README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: JS Webdav Client
Access files of a Webdav server
Author: By
Last change:
Date: 1 year ago
Size: 593 bytes
 

Contents

Class file image Download

Nginx Directory List Example

To utilise this example, you'll need a running nginx server with the fancyindex module and (obviously) WebDAV enabled including dav-ext-module.

Copy the files in this directory to /usr/local/share/webdavjs-nginx/, and add the following line to your server config:

include /usr/local/share/webdavjs-nginx/webdavindex.conf;

By using the fancyindex module and having the module's generated index under <noscript> tags, a directory index is still available to clients that can not use JavaScript, including wget or MPD's curl storage plugin backend.