Httpd:could not reliably determine the server ' s fully qualified domain name, using Localhost.localdomain for ServerNameHTTPD (PID 31688) already runningServer: Unable to reliably determine the fully qualified domain name of the server, using Localhost.localdomain as ServerNamehttpd (PID 31688) already runningI am installed in/usr/local/apache2, need to modify 650 in file/usr/local/apache2/conf/httpd.conf) this.width=650; "Src=" http://s3.51cto.com /wyfs02/m02/89/1a/wkiol1gijt7x5yw3aaagj31hxw40
Apache 2.4.4 automatically split logs, generated by date
Wed software Apache Nginx lls7 Tomcat Software
HTTP protocol 80 Port
Domain name resolution DNS TCP 53 (with DNS connection) UDP 53 port (Resolve DNS)
Language html5+css3 jsp php java python
RPM-IVH/MNT/PACKAGES/HTTPD-2.2.15-29.EL6_4.X86_64.RPM installation httpd
rpm-ivh/mnt/packages/bind-9.8.2-0.17.rc1.el6_4.6.x86_64 Installing DNS doma
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 10 most visited IPs in Apachelog.awk ' {print '} ' apache_log |sort |uniq-c|sort-nr|head-n 10awk first grabs the IP in each log
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 10 most visited IPs in Apachelog.awk ' {print '} ' apache_log |sort |uniq-c|sort-nr|head-n 10awk first grabs the IP in each log
example of the www.linuxtestbak.com domain to jump to linuxtest.com :Step 1: Modify the virtual host configuration fileStep 2: Modify the httpd.conf file[[emailprotected] ~]# vim /usr/local/apache2/conf/httpd.confLoadModule rewrite_module modules/mod_rewrite.so //去掉#,以启用这个模块Step 3: Test[[emailprotected] ~]# curl -x 192.168.204.128:80 www.linuxtestbak.com -IHTTP/1.1 301 Moved PermanentlyDate: Fri, 02 Mar 2018 10:53:51 GMTServer: Apache/2.4.29 (Uni
1, identify the search engine:
Before the "/etc/httpd/conf/httpd.conf" file "Logformat", add the following to determine whether the spider is crawling or real user access:
Setenvifnocase user-agent "(googlebot| mediapartners-google| baiduspider| Msnbot|sogou spider| sosospider| Yodaobot| yahoo| Yahoo) "Robot
2. Define Log format:
Add a row under "httpd.conf" File "Logformat" to set a new log format:
Lo
Apache has documents that provide a detailed index of the log format, the following are some of the most important domains:Normal log format:%H: When a client (for example, a browser) makes a connection request to the server, its own IP address or domain name (to open hostnamelookups).%u: The number of the user under the record when authenticating a user using th
not LI Mited to, procurement of * substitute goods or SERVICES; LOSS of Use, DATA, OR profits; OR BUSINESS * interruption) HOWEVER caused and on any theory of liability, WHETHER in * CONTRACT, STRICT liability, OR T ORT (including negligence OR otherwise) * arising in no WAY out of the "use of" this SOFTWARE, even IF advised of the * P
Ossibility of SUCH DAMAGE. * Java, the Duke mascot, and all variants of sun ' s Java "steaming coffee * cup" logo are trademarks of Sun Microsyste Ms. Sun ' s,
/apachectl -t /usr/local/apache2.4/bin/apachectl graceful curl -x127.0.0.1:80 -I www.good.com //状态码为301Third, access logsAccess log records every request from a userYou can see that the log is in two formats, before the default is commonLogformat "%h%l%u%t \"%r\ "%>s%b \"%{referer}i\ "\"%{user-agent}i\ "" combinedLogformat "%h%l%u%t \"%r\ "%>s%b" commonChange the virtual host configuration file to the foll
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.