I’m trying to serve local copies of websites downloaded from the Wayback When Machine. Files were downloaded using the wayback_machine_downloader tool, and as a side effect are saved to disk as their original URL’s, including the query strings.
Typically it looks like this:
content.asp?MenuID=10
content.asp?MenuID=11
content.asp?MenuID=12
content.asp?MenuID=2&SubMenuID=14
...
I’ve been trying different incantations of rewrite
to get this to work, but I simply can’t. Currently I’m stuck on this:
localhost:2015
browse
log stdout
errors stdout
tls off
rewrite {
# r .*
to {uri} {path}?{query} {path}
}
It simply will not serve up one of those files, it just returns a 404.
Any advice, or even just advice on how to get caddy to give more verbose logs to help inspect what is actually going on?