Welcome! Log In Create A New Profile

Advanced

Re: How to log virtual server name

B.R.
August 07, 2013 03:54PM
Hello,


On Wed, Aug 7, 2013 at 3:09 PM, Roger Pack <lists@ruby-forum.com> wrote:

> seems for me that any of these work for showing the virtual host (for
> followers).
>
> $http_host $host $server_name
>
> ​The Nginx docs specifies different content for those 3 variables..
The $http_host is a subset of the possible values that $host can take.
$server_name might not reflect what you wish: it will send literally the
line which is in the server configuration. It it contains a regular
expression, for instance, you'll get it as you typed it in...



> I just had to uncomment this line for it to 'take', oddly:
>
>
> #access_log logs/access.log main;
>
> @nginx dev guys: it would be nice if the default config either
> mentioned that both log_format and access_log (commented out) lines need
> to be uncommented to take, or for them both to start uncommented
> out...to avoid this confusion for others in the future...
>
> --
> Posted via http://www.ruby-forum.com/.
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>

---
*B. R.*
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

How to log virtual server name

Lucian D. Kafka February 27, 2012 01:20AM

Re: How to log virtual server name

Igor Sysoev February 27, 2012 01:24AM

RE: How to log virtual server name

Lucian D. Kafka February 27, 2012 05:50PM

Re: How to log virtual server name

Francis Daly February 27, 2012 06:38PM

RE: How to log virtual server name

Lucian D. Kafka February 27, 2012 09:30PM

Re: How to log virtual server name

Francis Daly February 28, 2012 01:54PM

Re: How to log virtual server name

Piotr Sikora February 27, 2012 01:28AM

Re: How to log virtual server name

Roger Pack August 07, 2013 03:10PM

Re: How to log virtual server name

B.R. August 07, 2013 03:54PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 151
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready