"Learning Essays" notes on Httpd.conf-1

Source: Internet
Author: User

Httpd.conf is an important configuration file in Apache Web Server software that allows you to add site information to your website.

Global configuration file: ServerRoot "URL"

Used to specify the run directory of Apache, after the service starts, it automatically changes the directory to the current directory, and all the relative paths used later are intended for this directory

Listen 80 Default port is 80 port

LoadModule statement

User Daemon Apache Default users

Group Daemon Apache Default groups

ServerAdmin [email protected] Set the administrator's email address, if there is an error will be sent to the administrator's mailbox

ServerName localhost:80 Server Name

DocumentRoot Web site root directory

<directory/>

Options FollowSymLinks

AllowOverride All

Order Deny,allow

Deny from all

</Directory>

<Directory> is a set of rules for Directory access, often used in conjunction with virtual directories

LogLevel warn control the verbosity of the error log

Logformat This is Apache's logging format setting

% a remote IP address
% A native IP address
% B bytes transmitted in addition to the HTTP header
%B the number of bytes transmitted in the CLF format except the HTTP header, which is the '-' instead of 0 when there is no byte transfer.
%{foobar}c the contents of the Cookiefoobar in the request to the server.
% D The time, in micro units, that the server takes to process this request.
%{foobar}e The value of the environment variable FOOBAR
%f the file name
%h remote host
% h requests the Protocol
%{foobar}i send to the server the content of the request header FOOBAR:.
% l remote Login name (from Identd, if supported), unless IdentityCheck is set to "on", a "-" will be obtained.
%m The requested method
%{foobar}n the contents of the annotation Foobar from another module.
%{foobar}o The contents of the answer header Foobar:. The
%p Server serves the standard port for the request.
% P The PID of the child process serving this request. The
%{format}p serves the PID or TID (thread ID) of the request, and the format range is: PID and Tid (2.0.46 and later) and Hextid (requires APR1.2.0 and above)
%q query string ( If there is a "?" Boot, otherwise return an empty string)
%r the first line of the requested
%s state. For internal redirection requests, this state refers to the state of the original request, and-%>s refers to the state of the last request.
%t time, in normal log time format (Standard English format)
%{format}t time, in the format specified by Strftime (3). (localized format by default)
% T takes the time, in seconds, to finish processing the request.
%u remote user name (based on authentication information, if return status (%s) is 401, may be false)
% u request URL path, does not contain query string. The
%v standard servername to service the request.
% V The server name set according to the USECANONICALNAME directive.
% X Connection status when the request completes: The x= connection is interrupted before the answer is complete. The
+ = answer continues to remain connected after it has been delivered. The connection is closed after the
-= reply has been delivered.

"Learning Essays" notes on httpd.conf-1

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.