Apache2 client ip and port

apache-2.2log-files

Do anyone know if Apache by default is logging the port number of a client and were to find it. I know that it log the ip, but for mobile users there can be several devices with the same ip which uses a different port.

Best Answer

By default Apache doesn't log the port number of the client but it can. Where the logs are is dependent on where you told Apache to log to.

You need to study the mod_log_config documentation, in particular the CustomLog directive and the CustomLogFormats.

Tne documentation is your friend.