Wildcard subdomain - logging

Hello,

I’m trying to figure out my logging. Right now, I have nginx acting
as a reverse proxy, sending requests to backend web servers running
apache. For one part of my site, I have wildcard subdomains - these
are handled by my htaccess rules for apache. (I enable something like
.mysite.com. In htaccess, this is rewritten to something like
/mypage.php?name=.

Now, in my nginx access log, no matter what is, I see "GET /
". Is there any way to get the original request string? Or, perhaps
do some regex operation on the log write? For my stats-tracking, I’d
like to be able to differentiate between different page hits. A bit
at a loss how to get this!

Thanks for any help!

Neil

On Fri, Apr 11, 2008 at 01:59:54AM -0700, Neil S. wrote:

". Is there any way to get the original request string? Or, perhaps
do some regex operation on the log write? For my stats-tracking, I’d
like to be able to differentiate between different page hits. A bit
at a loss how to get this!

“GET / HTTP/1.1” is original request line: $request_line.
You may additionaly log $uri.
Or add $http_host to your log_format.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs