Skip to content

Instantly share code, notes, and snippets.

@khatriafaz
Created February 3, 2024 08:10
Show Gist options
  • Save khatriafaz/a8996b224821f7a2959a209326d7a91b to your computer and use it in GitHub Desktop.
Save khatriafaz/a8996b224821f7a2959a209326d7a91b to your computer and use it in GitHub Desktop.
Caddy: prevent virtual host discover
# Your rest of the config
:80 {
error * "Unauthorized" 403
handle_errors {
respond "Unauthorized"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment