B
B
blackbeard2018-02-09 09:12:49
linux
blackbeard, 2018-02-09 09:12:49

nginx logging format with ports, how to configure?

Nginx listens on both ports (80/443). How to edit the config in order to log in the access logs the port / protocol by which clients are accessing?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
blackbeard, 2018-02-09
@Black_beard_ast

I found it myself, $server_port variable.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question