PHP collects statistics on the path of the 404 link page captured by the search engine in the nginx access log. I have the habit of cutting nginx logs on the server every day. Therefore, for visits from various search engines every day, I can always
This article mainly introduces how to collect statistics on the paths of the 404 link page captured by the search engine in the nginx access log in PHP. you can separate statistics on each search engine. For more information, see Nginx on the 404
1. Define the log format in the master configuration file[Email protected] ~]# vim/usr/local/apache2/conf/httpd.conf Logformat "%h%l%u%t \"%r\ "%>s%b \"%{referer}i\ "\"%{user-agent}i\ "" Combin Ed # Default defined log format, combined is the
Apache user authentication1. Edit the file[Email protected] ~]# vi/usr/local/apache2.4/conf/extra/httpd-vhosts.conf#打开网页时, let you enter the Apache authenticated username, passwordDocumentRoot "/data/wwwroot/111.com"ServerName 111.comServeralias www.
11.18 Apache user authenticationChange the contents of a virtual hostVim/usr/local/apache2.4/conf/extra/httpd-vhosts.confAdd user name and password? /usr/local/apache2.4/bin/htpasswd-c-m/data/.htpasswd aming-C is the creation of-m specified typeView
For httpd users plus authenticationModify the virtual host configuration file.vim/usr/local/apache2.4/conf/extra/httpd-vhosts.conf//The 123.com virtual host is edited into the following contentDocumentRoot "/data/wwwroot/www.123.com"ServerName www.12
One, Apache user authenticationVim/usr/local/apache2.4/conf/extra/httpd-vhosts.confEdit the 111.com virtual host to the following:DocumentRoot "/data/wwwroot/www.111.com"ServerName www.111.com//Designation of certified directoriesAllowOverride
We are using the second configuration under the/usr/local/apache2.4/conf/extra/httpd-vhosts.conf configuration file, its log under/usr/local/apache2.4/logs/#cat/usr/local/apache2.4/logs/111.com-access_log//view its log, get is not add-I when the
One, Apache user authenticationThe function is that when users visit a website, they need to enter a user name and password to enter the site. Some important sites or websites are often authenticated by users to ensure security.#
11.18Apache user AuthenticationCopy the corresponding parameters into the second virtual host (a second virtual host is selected in order not to affect the default host use)//Designation of certified directoriesAllowOverride authconfig//This
#!/usr/bin/env python # coding=utf-8 #------------------------------------------------------# name:nginx Log analysis feet
Ben # Purpose: This script is only used to parse Nginx access log # version:1.0 # author:leo # created:2013-05-07 # modified:2
Linux System Configuration methods:
Change it to
The code is as follows
ErrorLog "| /usr/local/apache/bin/rotatelogs/home/logs/www/%y_%m_%d_error_log 86400 480″Customlog "|
Back up your Web program#!/bin/bash/bin/tar czf/mnt/backup_website/web_$ (date +%y%m%d_%h%m%s). Gz. tar /mnt/wwwroot/web/mnt/backup_websitefind . -mtime +1"*20[1-9][3-9]*"xargsrm - 0Backing Up the
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.