Skip to content

Document that file_server's hide can be used multiple times#545

Open
luccinmasirika wants to merge 2 commits into
caddyserver:masterfrom
luccinmasirika:docs/file-server-hide-repeatable
Open

Document that file_server's hide can be used multiple times#545
luccinmasirika wants to merge 2 commits into
caddyserver:masterfrom
luccinmasirika:docs/file-server-hide-repeatable

Conversation

@luccinmasirika

Copy link
Copy Markdown

Companion docs for caddyserver/caddy#7817 (closes the needs docs note there), which makes repeated hide subdirectives append instead of overwrite.

This adds one sentence to the hide description noting that multiple uses combine rather than replacing each other, which is what lets imported snippets contribute common hides alongside site-specific ones. No other changes. Related issue: caddyserver/caddy#7815.

Assistance disclosure: I used an AI assistant to help locate the right spot and draft the wording; I reviewed it and confirmed it matches the behavior in the linked PR.

As of caddyserver/caddy#7817, repeated hide subdirectives append to the list instead of overwriting, so note that multiple uses combine (useful for composing imported snippets with site-specific hides).
Comment thread src/docs/markdown/caddyfile/directives/file_server.md Outdated
Co-authored-by: Zen Dodd <mail@steadytao.com>

@steadytao steadytao left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Merge for v2.11.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants