Icontem

File: examples/apache-directory-list-local/webdav.conf

Recommend this page to a friend!
  Classes of Dom Hastings  >  JS Webdav Client  >  examples/apache-directory-list-local/webdav.conf  >  Download  
File: examples/apache-directory-list-local/webdav.conf
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: JS Webdav Client
Access files of a Webdav server
Author: By
Last change: Webdav security

* I'm disabling .htaccess too for good measure.
* Disable server side scripts
Remove DAV from security
Just limit to GET.

https://github.com/dom111/webdav-js/pull/21#discussion_r233023301
squelch the error message in the Apache startup

https://github.com/dom111/webdav-js/pull/21#discussion_r233018107
Add security forcing readonly on webdav-js
Create testing with docker & Fix apache conf

* The apache conf files were not properly written.
* Testing with docker for simler testing (use ./test/clean.sh to remove
all images and containers from your pc)
Date: 1 year ago
Size: 617 bytes
 

Contents

Class file image Download
<VirtualHost *:80>
    ServerName webdav.server.com
    DocumentRoot /var/www/html/


    # assuming webdav-js is checked out to /var/www/webdav-js
    Alias /webdav-js /var/www/webdav-js

    <Location />
        DirectoryIndex disabled
        DAV on
        AllowOverride None

        Options +Indexes -ExecCGI
        HeaderName /webdav-js/examples/apache-directory-list-local/header.html

        SetHandler None
    </Location>

    # Add security
    <Directory /var/www/webdav-js>
        Satisfy all
        <LimitExcept GET>
            Deny from all
        </LimitExcept>
    </Directory>
</VirtualHost>