1. Access LogsIn the previous virtual host configuration file, there are two lines of log-related configuration, and the end of combined is the format type of the logErrorlog "Logs/111.com-error_log" Customlog "Logs/111.com-access_log" combinedThe
One, Apache access logs do not log static filesMost of the site elements are static files, tablets, CSS, JS, etc., these elements can not be recordedvim/usr/local/apache2.4/conf/extra/httpd-vhosts.conf//Change to the followingChange the virtual host
One: Apache user authenticationSometimes, we need to give some special access to set up a user authentication mechanism to increase security. Like we justInstalled Discuz Forum, there is a management background, although the management of the
access log records every request from a userOpen the Apache master configuration filevim /usr/local/apache2.4/conf/httpd.conf主配置文件里提供了两种日志的模板:common和combinedLogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combinedLogFormat "%
First, configuration and description
Tomcat access log format configuration, under the host tag in Config/server.xml Plus
prefix= "Localhost_access_log" suffix= ". txt"pattern= "%h%l%u%t "%r" [%{postdata}r]%s%{referer}i%{user-agent}i%T%b "/
Nginx access logs are controlled by two main parametersLog_format #用来定义记录日志的格式 (can define a variety of log formats, take different names can be)Access_log #用来指定日至文件的路径及使用的何种日志格式记录日志Default value for Lof_format:# log_format main '$remote_addr -
On the line encountered a case, the application structure is nginx----->resin---java, where nginx do Lb,resin as a Java container. In the Nginx level to do HTTP code monitoring, found that there is a high ratio of 4xx alarm:650) this.width=650; "src=
Log formatvim/usr/local/nginx/conf/nginx.conf//Search Log_format
$remote _addr
Client IP (public IP)
$http _x_forwarded_for
IP of the proxy server
$time _local
Server local time
11.18 Apache user authenticationEdit the/usr/local/apache2.4/conf/extra/httpd-vhosts.conf and edit the second virtual host to the following:
• Parameter Description: //Designation of certified directoriesallowoverride authconfig //This
When we develop, we often count some access logs, and the URLs in the access log are massive, and many of them are duplicate content. Take the URL, for example, to count the URLs with the first 5 frequency occurrences in the URL, sorted by the
First, configuration and description
Tomcat access log format configuration, under the host tag in Config/server.xml Plus
prefix= "Localhost_access_log" suffix= ". txt"pattern= "%h%l%u%t "%r" [%{postdata}r]%s%{referer}i%{user-agent}i%T%b "/
May 29 Task11.18 Apache user authentication11.19/11.20 Domain Jump11.21 Apache Access Log11.18 Apache user authenticationThe so-called user authentication is to enter the 80 port corresponding to the page, that is, through the Apache time, set the
Scripting Features:Log cutting class script, including: Nginx access logs, gateway devices, AC devices, authentication information and so on, all through FTP upload to the appropriate server to
Python analysis of the access log script sharing by the ngnnx, pythonnignx
#! /Usr/bin/env python # coding = UTF-8 # ---------------------------------------------------- # Name: nginx log analysis script # Purpose: This script is only used to
Article title: Apache log: access log (2 ). Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
3. process
This article describes how to collect statistics on the path of the 404 link page captured by the search engine in the nginx access log in PHP, if you need it, you can refer to my habit of cutting nginx logs every day on the server. Therefore, you
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.