The default access logs format uses {uri} to spit out the requested page. If the URL gets rewritten (I’m using fastcgi for PHP and a rewrite, see below) the output in the logs only has the index file without the query/path requested. At a glance, I don’t see what the proper placeholder for this would be.
I believe {uri} should give you the original request URI, and fastcgi always uses that one to pass upstream. (See https://github.com/mholt/caddy/issues/256) - the {rewrite_uri} placeholder should give you the changed URI.
I’m literally working on a change to this right now to go out with the next release; the way we handle the request URI got a bit messy and I’m cleaning it up. I’ll be opening at least one or two pull requests in the next couple days for it! Would love to have your review.
Aha. The problem was in 0.9.5, I hadn’t updated to 0.10.0, my bad. It now shows the correct URI.
Odd thing though, I’ve always had this behaviour, even in my logs dating back to September of last year. Has it been a problem since before then? I was under the impression the problems with the request URIs was a more recent thing based on the issues lately.
I’ll definitely keep an eye and try it out and review when you have something