Apache optimized Application II (log management)DirectoryThe first part of the preparatory workSecond part installs Apache servicePart Three log management one (configuration log split)Part IV Log Management II (configuration Awst
A. Log analysisIf the Apache installation uses the default configuration, two files will be generated in the/logs directory, respectively, Access_log and Error_log1). Access_logAccess_log for the access log, log all requests to the Apache server for access, its location and
First, the Apache log is recorded by date
Found in the Pache configuration fileErrorLog Logs/error_logCustomlog Logs/access_log Common
Linux System configuration methods:
Change it toErrorLog "| /usr/local/apache/bin/rotatelogs/home/logs/www/%y_%m_%d_error_log 86400 480″Customlog "| /usr/local/apache/bin/rotatelogs/h
1. apache logs are recorded by date. in the apache configuration file, locate errorlogs/error_logcustomlogs/access_logcommonLinux system configuration method: Change it to ErrorLog ldquo; |/usr/local/apache/bin/rotatelogs/hom "/>
1. apache logs are recorded by date
In the apache
-l logs/access-% Y-% m-% d. log 86400 Prime; common This is simple. Just put it in. The error log is shown below.This section describes windows users. linux uses cronolog to separate apache logs.The cronolog tool can be run in linux or on a windows ho
I. log analysis if the default configuration is used during apache installation, two files are generated under the logs directory, access_log and error_log1.access_logaccess_log, respectively, as access logs, record all requests to the apache server. Its location and content are controlled by the CustomLog command. The LogFormat command can be used to simplify
I.
1. apache logs are recorded by dateIn the apache configuration file, findErrorLog logs/error_logCustomLog logs/access_log commonLinux system configuration method:Change itErrorLog "|/usr/local/apache/bin/rotatelogs/home/logs/www/% Y _ % m _ % d_error_log 86400 480 ″CustomLog "|/usr/local/apache/bin/rotatelogs/home/logs
\"%r\ "%>s%b \"%{referer}i\ "\"%{user-agent}i\ "%I%O" CombinedioIfmodule># # The location and format of the access logfile (Common logfile format). # If You don't define any access logfiles within aVirtualHost># container, they'll be logged here. Contrariwise, if you *do* # define per-VirtualHost>access LogFiles, transactions'll be # logged therein and *not* in the this file. # customlog "E:/wamp/logs/access.log" Common # # If you prefer a logfile with access, agent, and Referer Informat Ion
Syslog and Windows Event log collectionEVENTLOG Analyzer collects the event logs from distributed Windows devices, or collects syslog from distributed Linux and UNIX devices, switches, and routers (Cisco). The event log report is generated in real time to display important s
The purpose of this tutorial is to show you how to use the "Apache and Windows" combination to develop PHP programs.
If a specific version is not specified in the tutorial, PHP is PHP3 or PHP4 Beta 2 or 3,apache 1.3.x.
First, install Apache
First, you need a Web server, I recommend
The purpose of this tutorial is to show you how to use a combination of Apache and windows to develop PHP Program .If no specific version is specified in the tutorial, PHP is php3, PhP4 beta 2 or 3, and Apache is 1.3.x.1. install ApacheFirst, you need a Web server. I recommend Apache. First go to HTP: // www.apache.org
Abstract Log4cxx is one of the subprojects of the Open source project Apache Logging Service, which is used to provide log functionality for C + + programs so that developers can debug and audit the target program. This paper introduces the usage and configuration of log4cxx, and gives an example which can be started quickly. Finally, some practical suggestions are given for the
Assume that the apache log format is:118.78.199.98--[09/Jan/2010: 00: 59: 59 + 0800] "GET/Public/Css/index.css HTTP/1.1" 304-"http://www.a.cn/common/index.php”" Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB6.3 )"
Problem 1: In apachelog, find the top 10 IP addresses with the most accesses.Awk '{print $1}' apache_log | sort | uniq-c | sort-nr | head-
Suppose the Apache log format is:118.78.199.98–-[09/jan/2010:00:59:59 +0800] "Get/public/css/index.css http/1.1″304–" http://www.a.cn/common/ index.php "" mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB6.3) "
Issue 1: Find the most visited 10 IP in Apachelog.awk ' {print $} ' apache_log |sort |uniq-c|sort-nr|head-n 10
awk first grabs the IP from e
password-S: Encrypt passwords using the SHA algorithm-B: Enter the user name and password at the command line instead of the password as prompted-D: Delete the specified user
Create the password file below:[[emailprotected] ~]# vim /usr/local/apache2/conf/extra/httpd-vhosts.conf [[emailprotected] ~]# /usr/local/apache2/bin/htpasswd -cm /data/.htpasswd zlinux // -c 表示创建 -m 指定MD5加密 指定所在位置 如果再次增加用户可以不用-c选项,-c是首次创建文件使用的,,否则/data/.htpasswd会被重置,之前用户被清空New password: Re-type new password: Addi
, not simply clicking and selecting a few options. Get used to it as soon as possible, this is the Apache way. You need to edit the file to set different configuration options, and if you do it incorrectly, your changes will prevent Apache from loading properly. If the setting throws an error, then the error may be logged in the Apache 2 error
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.