Apache user authentication, domain name redirection, viewing access logs

apache user authentication

Note: A single file must exist.

domain name jump

When a website is no longer used and a new website is replaced, the method of domain name jumping can be used to make old users jump to the new website.

Note: [R=301,L] The status code is set to 301, L jumps once, mod_rewrite is in the httpd configuration file.

access log

Files of the specified type (static files) are not recorded in the log file

Logging every request would make the journal file too numerous to make sense.

Access log cutting

|/usr/local/apache2.4/bin/rotatelogs -l logs/123.com_%Y%m%d.log 86400

A log cutter for rotatelogs httpd

-l by system time

logs/123.com_%Y%m%d.log The name of the log is by year, month, day. log one per day

86400 A day is 86400 seconds

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325479091&siteId=291194637