Apache Startup failure error log:The Apache service named reported the following error:>>> httpd.exe:Could not reliably determine the server's fully qualified domain name, using 192.168.0.210 for Ser Vername.
Analysis: Can not reliably determine the fully qualified domain name of the server, the use of 192.168.0.210)
The Apache service named reported the follow
^/(. *) $ http://sdw.com/$1 [r=301,l]#//defines the rewrite rule, which executes when the above conditions are metAllowOverride authconfigAuthName "123.com User auth"AuthType Basicauthuserfile/data/.htpasswdRequire Valid-userErrorlog "Logs/sdw.com-error_log"Customlog "Logs/sdw.com-access_log" common2. Modify the configuration[Email protected] ~]# vim/usr/local/apache2/conf/httpd.confLoadModule rewrite_module modules/mod_rewrite.so//Remove # To enable this module3. Test results[Email protected]
You don't have to be patient to read everything: Brief installation instructions are as follows
Installation
http://sourceforge.net/projects/awstats/after downloading the installation package:
Gnu/linux:tar ZXF awstats-version.tgz
The default awstats scripts and static files are in the Wwwroot directory: The files under the Cgi-bin directory are deployed to the cgi-bin/directory:/home/apache/cgi-bin/awstats/
MV Awstats-version/wwwroot/cgi-bin/pat
Source: Http://www.codeproject.com/Articles/823247/How-to-use-Apache-log-net-library-with-ASP-NET-MVCTracking and monitoring logs is a good way to record a process when running a software program.Brief introduction:Tracking and monitoring logs is a good way to record a process when running a software program. Especially when an application goes wrong, the log is
I. Log splitting of Apache1. Configure Apache to use Cronolog:The following configuration is carried out in the virtual host because Apache is enabled for the experiment, so it is also convenient for multi-site analysis operations.Vim/etc/httpd/conf.d/vhosts.confReplace the Customlog and errorlog in the configuration file with the following (because we want to mu
/usr/local/apache2/bin/apachectl-m: See which modules are installed/usr/local/apache/bin/apachectl-v: Viewing the mode used/usr/local/apache2/bin/apachectl-t: Checking for syntax errors/usr/local/apache2/bin/apachectl-l: Viewing the installed library files/usr/local/apache2/bin/apachectl Graceful: Reload configuration/usr/local/apache2/htcocs Home Store Directory/usr/local/apache2/bin/apachectl Startup file directory/usr/local/apache2/conf configurati
Normally we set Apache parameters in {$apache}/conf/httpd.conf, but we did not find any configuration instructions to set the log file size by reference http://httpd.apache.org/docs/2.0/ Programs/rotatelogs.html, you can use Apache's own program Rotatelogs.exe (located in {$apache}/bin/directory) to limit the size of t
produce an access record.Extended:Apache Logging Client-requested domain nameUnder normal circumstances, there is no need to record this, after all, we mostly based on the virtual host to set the corresponding access log, but there are individual situations, such as ServerName *.abc.com such a pan-analytic form, it is necessary to record the user requested domain name in the end. And the Apache Logformat h
, delete rewrite_module (shared) in front of the #2. TestCurl-x127.0.0.1:80-i 123.com-i//Status code is 301Third, Apache access log1. Access logging records every request from a user2. Define the format for the logvim/usr/local/apache/conf/httpd.conf//Search for Logformat, it gives you two formats:Logformat "%h%l%u%t \"%r\ "%>s%b \"%{referer}i\ "\"%{user-agent}i\ "" combinedLogformat "%h%l%u%t \"%r\ "%>s%b"
/apachectl -tSyntax OK[[emailprotected] ~]# /usr/local/apache2/bin/apachectl gracefulDefine all requests to access the pictures as variable img, and exclude them in the access record (log). Accessing the file contents in the format specified in the IMG variable with curl after reloading will not produce an access record.Second, access log cutting
With the server running, the access
You can configure Apache's own program Rotatelogs functionality in Apache's httpd.conf configuration file . Rotatelogs is a simple program that works with the Apache pipeline log feature,Reference: http://httpd.apache.org/docs/current/mod/mod_log_config.html1 Create a new log every dayCustomlog "|/usr/sbin/rotatelogs/etc/httpd/logs/access_log_%y-%m-%d 86400 480"
Apache Log Analysis
Our company's Apache log type is a mixed class of "Combined log Format", which is the official name of Apache. Structure as follows;
"%h%l%u%t/"%r/"%>s%b/"%{referer}i/"/"%{user-agent}i/"
If you want to see t
1. Introduction
Log4cxx is a sub-project of Apache logging service, an open-source project. It is a C ++ porting version of log4j, a well-known Java Community, used to provide log functions for C ++ programs, this allows developers to debug and audit the target program.
More information about log4cxx can be obtained from the website http://logging.apache.org of the Ap
will take apache log analysis as an example to introduce the usage of these two tools:
WebalizerTools
: Http://www.webalizer.org
Features of Webalizer:
1. for programs written in C, it has a high operating efficiency. On a machine with a clock speed of 10000 MHz, webalizer can analyze records per second. Therefore, it takes only 15 seconds to analyze a 40 m log
The site will increase with the amount of traffic, and the log becomes more and more large, if ignored, will someday burst disk.So we should cut the log regularly every day, such as one months later, and then delete the outdated logs to ensure that the log files will not be an infinite amount of disk-occupying resources.configuration: to enter
Linux: |/usr/local/sbin/cronolog/web/apache/logs/%y%m%daccess_log## The following directives define some format nicknames for use with# a customlog directive (see below).#Logformat "%h%l%u%t \"%r\ "%>s%b \"%{referer}i\ "\"%{user-agent}i\ ""Logformat "%h%l%u%t \"%r\ "%>s%b" Common# need to enable MOD_LOGIO.C to Use%I And%OLogformat "%h%l%u%t \"%r\ "%>s%b \"%{referer}i\ "\"%{user-agent}i\ "%I%O" Combinedio## The location and format of the access logfile
and other types. ? ? ? 5) using the awstats_updateall.pl script provided by the Awstats system, you can update the log statistics for all sites, and when the script is executed, the new log content is automatically parsed and the analysis results updated to the statistics database. ? You can also set cron scheduled tasks so that the system periodically updates the l
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.