This is a general query on the map (Caddyfile directive) — Caddy Documentation, specifically the example. There are a couple of entries in the first column of the table that read ~.*\.net$ and ~.*\.xyz$. The supporting explanation states: ‘…if the request is for any host that ends in .net or .xyz…’
I’m trying to figure out how these entries were created as I’d like to include an entry for a map table that uses the placeholder {path} as the source with the supporting explanation being ‘…if the request is for any path that starts with /xyz…’ Is this possible?
I believe I’ve used regular expressions in sed and grep, but I generally adapted canned responses I’d find online without any real understanding. I feel more confident now that I’ll be able to approach those tools with less trepidation. Thanks for enlightening me, gentlemen.