how to see who has logged into apache http proxy server

is there a way to find out who (based on username and password that I configured in the server) is connected to and is using apache proxy?

2 answers

  • answered 2018-11-08 05:51 Nic3500

    This should appear in the logs if configured for it. From

    %u Remote user if the request was authenticated. May be bogus if return status (%s) is 401 (unauthorized).

    The default configuration is

    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    CustomLog "logs/access_log" combined

    Which contains "%u" already. So look in your log file defined by CustomLog to see which user is doing what request.

    Obviously, this will only work if you configured user authentication for proxy access.

  • answered 2018-11-09 04:52 reza

    I found it out! the line #LoadModule log_config_module modules/mod_log_config.dll is the answer that I removed # sign from that!