How to enable User-Agent in access logs?
Hello,
I want to enable "User-Agent" in access log for my cPanel server.
As I know, I should edit "/usr/local/apache/conf/httpd.conf"
Please tell me which lines of httpd.conf should be edited?
Thanks.
-
Hello :) Could you elaborate on what you would like to change specifically? For instance, for what purpose are you making a change? Keep in mind that you should not modify the httpd.conf file directly. Instead, following the instructions at: [url=http://docs.cpanel.net/twiki/bin/view/EasyApache/EasyApacheCustomDirectivesOutsideVirtualHost]EasyApache: Changes Contained Outside a VirtualHost Directive [url=http://docs.cpanel.net/twiki/bin/view/EasyApache/EasyApacheChangesWithinVirtualHost]EasyApache: Changes Contained Within a VirtualHost Directive Thank you. 0 -
[quote="cPanelMichael, post: 1513261">Hello :) Could you elaborate on what you would like to change specifically? For instance, for what purpose are you making a change? Keep in mind that you should not modify the httpd.conf file directly. Instead, following the instructions at: [url=http://docs.cpanel.net/twiki/bin/view/EasyApache/EasyApacheCustomDirectivesOutsideVirtualHost]EasyApache: Changes Contained Outside a VirtualHost Directive [url=http://docs.cpanel.net/twiki/bin/view/EasyApache/EasyApacheChangesWithinVirtualHost]EasyApache: Changes Contained Within a VirtualHost Directive Thank you.
Hello, I want to see "User-Agent" (Browser) in access logs. This is the current access logs of my server:207.241.226.216 - - [21/Nov/2013:23:14:59 +0330] "GET /robots.txt HTTP/1.1" 404 - 207.241.226.216 - - [21/Nov/2013:23:15:01 +0330] "GET /robots.txt HTTP/1.1" 404 - 207.241.226.216 - - [21/Nov/2013:23:15:01 +0330] "GET / HTTP/1.1" 200 2
And there is no "User-Agent" in it.0 -
Where are you reviewing those access logs at? You can review the full access logs in the appropriate files associated with the domain name in: /usr/local/apache/logs/domlogs/
Thank you.0 -
[quote="cPanelMichael, post: 1513882">Where are you reviewing those access logs at? You can review the full access logs in the appropriate files associated with the domain name in: /usr/local/apache/logs/domlogs/
Thank you.
Hello, My customers want to see the full access log. But they have no access to /usr/local/apache/logs/domlogs/0 -
[quote="hamed5034, post: 1514892">Hello, My customers want to see the full access log. But they have no access to /usr/local/apache/logs/domlogs/
They have access to /home/CPANELUSERNAME/access-logs/0 -
[quote="quietFinn, post: 1514902">They have access to /home/CPANELUSERNAME/access-logs/
Yes, the individual customer can access the "access-logs" directory within their account to review their individual Apache domain access logs. The "access-logs" directory links to /usr/local/apache/domlogs/$user. Thank you.0
Please sign in to leave a comment.
Comments
6 comments