[resolved] 404'd with http.browse when using path in label


(Vegard Berg) #1

I’m having an issue with using the http.browse module in my Caddyfile.

127.0.0.1:5555/folder {
    basicauth user password
    browse /
}

going to http://127.0.0.1:5555/folder results in the directories and files being listed as normal. However, clicking on a file results it trying to go to http://127.0.0.1:5555/somefile.ext, which results in a 404 error.

How would I make Caddy use the correct path?
Using Caddy 0.10.11

EDIT:
It seems to have resolved itself now, but I’m not entirely sure why. Consider this closed.
I did replace the browse with the filemanager middleware, and after changing it back to browse everything worked.


(Matt Holt) #2

Probably a browser cache issue.