hello folks,
i am looking for a possibility to get nginx logging the “HTTP request
host name”, unfortunly i couldnt find anything in the english docs
thanks
hello folks,
i am looking for a possibility to get nginx logging the “HTTP request
host name”, unfortunly i couldnt find anything in the english docs
thanks
On Mon, Aug 31, 2009 at 03:53:52PM +0200, Juergen G. wrote:
i am looking for a possibility to get nginx logging the “HTTP request
host name”, unfortunly i couldnt find anything in the english docs
log_format host '"$request" $host';
access_log /path/to/host.log host;
Hello!
On Mon, Aug 31, 2009 at 03:53:52PM +0200, Juergen G. wrote:
hello folks,
i am looking for a possibility to get nginx logging the “HTTP request
host name”, unfortunly i couldnt find anything in the english docs
http://wiki.nginx.org/NginxHttpCoreModule#variables
$host
This variable is equal to line Host in the header of request or
name of the server processing the request if the Host header is
not available.
[Note that under some conditions you may want to log $http_host
instead, which is empty if there is no Host header in request.]
Maxim D.
On Mon, 2009-08-31 at 15:53 +0200, Juergen G. wrote:
hello folks,
i am looking for a possibility to get nginx logging the “HTTP request
host name”, unfortunly i couldnt find anything in the english docs
You can use $host variable
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs