Unable to use browse and webdav in Caddyfile


I’m using Caddy to serve and save (via webdav) html pages on my computer. I’m a fan of tiddlywiki (https://tiddlywiki.com/), and a local webdav server is a good option to save my tiddlywiki files.

I’d like to be able to use the browse directive but I can’ make webdav and browse work together.

My Caddyfile




Any help appreciated.
Thanks and regards



Can you provide some information about what problems you are having? Can you explain how you start caddy. Can you run caddy and save teh log

caddy -log c:\logs\log.txt


My Caddyfile :




I’m using Caddy to serve and save locally html files (tiddlywikis, see www.tiddlywiki.com). The webdav plugin allows me to save the file by overwriting it (with a PUT to the server).

Webdav works just fine.

But I’d like to be able to browse folders too. And with my Caddyfile I get an error when trying to open a folder.

The log :

2019/01/25 22:51:02 http://localhost:8000
2019/01/25 22:51:09 http: multiple response.WriteHeader calls

I’m trying to open the folder that contains the Caddy files. On the browser where I try to get the directory listing :
In a red rectangle :
### This page contains the following errors:

error on line 1 at column 2554: Extra content at the end of the document

### Below is a rendering of the page up to the first error.    

Then :

/c:/CaddyFri, 25 Jan 2019 21:51:02 GMTCaddyHTTP/1.1 200 OK/c:/Caddy/5.1.17-Test.html5.1.17-Test.html2089498Fri, 25 Jan 2019 21:51:55 GMT"157d35e794e4c6b01fe21a"text/html; charset=utf-8HTTP/1.1 200 OK/c:/Caddy/caddy.exeapplication/x-msdownloadWed, 16 Jan 2019 20:43:07 GMT"157a6eed525771e412db000"caddy.exe19771392HTTP/1.1 200 OK/c:/Caddy/CaddyfileCaddyfile34Fri, 25 Jan 2019 21:47:46 GMT"157d35ad9a19c9bc22"text/plain; charset=utf-8HTTP/1.1 200 OK/c:/Caddy/caddy_v0.11.1_windows_amd64_custom_personal.zip9353527Wed, 16 Jan 2019 17:04:55 GMT"157a63051efbfac08eb937"caddy_v0.11.1_windows_amd64_custom_personal.zipapplication/x-zip-compressedHTTP/1.1 200 OK/c:/Caddy/CHANGES.txt"157a6eed54213adc59d0"CHANGES.txt22992Wed, 16 Jan 2019 20:43:07 GMTtext/plain; charset=utf-8HTTP/1.1 200 OK

It seems that Caddy begins to unfold the folder content and the encounters an error.
Here is the content of this folder.

When I try Caddy without webdav, it displays the content of the folder in the correct way.


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.