Caddy: browse and 404

Created on 28 Aug 2017  路  2Comments  路  Source: caddyserver/caddy

1. What version of Caddy are you using (caddy -version)?

0.10.7

2. What are you trying to do?

I was trying to serve a iso file via plain HTTP. The iso saved in /root/iso

3. What is your entire Caddyfile?

:80
gzip
browse /root/iso

However, replace "browse /root/iso" with simple "browse" do work. It listed all files in "/root" as caddy binary was saved and excuted in "/root".

4. How did you run Caddy (give the full command and describe the execution environment)?

./caddy -conf caddy.conf

5. Please paste any relevant HTTP request(s) here.

6. What did you expect to see?

List all files in directory "/root/iso".

7. What did you see instead (give full error messages and/or log)?

404

8. How can someone who is starting from scratch reproduce the bug as minimally as possible?

question

Most helpful comment

^ Yes, that should do it. :)

All 2 comments

Hi, I think you want:

:80
gzip
root /root/iso
browse

^ Yes, that should do it. :)

Was this page helpful?
0 / 5 - 0 ratings