Welcome! Log In Create A New Profile

Advanced

Re: Port numbers in the access or error logs ?

Michael Williams
September 13, 2022 07:04PM
Thank you this worked perfectly. I used both server and remote ports in the
logs.

Many thanks!

On Tue, Sep 13, 2022 at 11:48 AM Lucas Rolff <lucas@lucasrolff.com> wrote:

> Yes, it’s documented in
> http://nginx.org/en/docs/http/ngx_http_core_module.html#variables
>
> $remote_port is probably what you’re after.
>
> On 13 Sep 2022, at 20:24, Michael Williams <
> michael.glenn.williams@totalvu.tv> wrote:
>
> Is there a way to include the request port number in each line of the
> access logs?
> I'm on Debian 11, using free NGINX downloaded.
>
> Many thanks,
> Michael
>
> [image: linkedin]
> https://www.linkedin.com/in/michael-glenn-williams-45ab23228/
> _______________________________________________
> nginx mailing list -- nginx@nginx.org
> To unsubscribe send an email to nginx-leave@nginx.org
>
>
> _______________________________________________
> nginx mailing list -- nginx@nginx.org
> To unsubscribe send an email to nginx-leave@nginx.org
>
_______________________________________________
nginx mailing list -- nginx@nginx.org
To unsubscribe send an email to nginx-leave@nginx.org
Subject Author Posted

Port numbers in the access or error logs ?

Michael Williams September 13, 2022 02:26PM

Re: Port numbers in the access or error logs ?

Lucas Rolff September 13, 2022 02:48PM

Re: Port numbers in the access or error logs ?

Michael Williams September 13, 2022 07:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 107
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready