Log real host name and not the rule that matched

I don't know if its a bug or if it is on purpose, but on access log, the rule that matched the domain is logged rather than the actual request domain.
In my configuration I use a catch-all on subdomain, resulting in `(.*).mydomain.com` in logs which is not really useful. This patch logs the actual domain name.