Apache's httpd.conf file common instructions Explanation

xiaoxiao2021-03-06  58

Apache's httpd.conf file common instructions Explanation

Servertype Standalone

# Setting the server in the form of a STANDALONE, or is started by the Internet Servo OpenTD. Generally use the former.

Serverroot "/ usr / local / apache"

# Set the Home Directory of the server to store the server's setup file, error file, and record files.

.....

Pidfile logs / httpd.pid

# When the program is started, the process number of the parent process httpd exists in this file. This file name can be changed with the PIDFile instruction.

ScoreboardFile Logs / Apache_Status

# Set the log file for some execution programs on the network.

#ResourceConfig conf / srm.conf

#Accessconfig conf / access.conf

# The content of the two files is already included in the httpd.conf file.

TIMEOUT 300

# If the client is not connected to the client 300 seconds, or the server has not transmitted data to the client in 300 seconds, it will automatically disconnect.

Keepalive ON

# Set whether or not to support the transmission function.

MaxkeepaliveRequests 100

# Set the number of support for conveying. The more the number is wasting the hard disk space. Set to 0 is not continuous.

KeepaliveTimeout 15

# If the user has not yet issued a request to the server after 15 seconds, he cannot renew.

MaxRequestSperChild 0

# Set the number of Child Process in the same time.

ThreadsperChild 50

# Set the number of servers using the process.

#Listen 3000

#Listen 12.34.56.78:80

# Allows other Port or IP access servers. In this case, Port is 3000, IP is 12.34.56.78:80.

#Bindaddress *

# Set the Apache to listen to all IP, or specify specified.

#LoadModule Anon_Auth_Module Modules / ApachemoduleAuthanon.dll

......

# Open the module that is currently not activated.

#ExtendedStatus on

# Set the status information generated by the server.

Port 80

# Set the port used by the server.

ServerAdmin you@your.address

# Set the server manager's E-mail address.

#Servername new.host.name

# The host name of the server. If you have a fixed IP address, you don't need to set it.

Documentroot "/ usr / local / apache / htdocs"

# Set the directory of the storage site HTML file.

Options Followsymlinks

ALLOWOVERRIDE NONE

# Set the command of the / directory. Specifically,

Option: Defines the operations that can be performed in the directory.

None: indicates that only browsing,

FOLLOWSYMLINKS: Allow the page to connect elsewhere,

EXECCGI: Allow CGI,

MultiViews: Allows you to watch animations or listen to music,

Indexes: Allows the server to return to the list of formatted lists,

INCLUDES: Allows the use of SSI. These settings can be checked.

All: You can do anything, but don't include MultiViews.

ALLOWOVERRIDE: Add the None parameter indicates that anyone can browse the files in the directory.

Additional parameters are: FileInfo, Authconfig, Limit. Userdir public_html

# Define the user to store the directory of the HTML file.

DirectoryIndex Index.html

# Defines the first displayed file.

AccessFileName .htaccess

# Define the name of each directory access control file.

#Cachenegotiatedddocs

Define proxy servers do not cache your page. Not recommended for use.

Usecanonicalname on

# The server uses the server name specified by ServerName and the port address specified by Port.

Posted at 15:18:33 on 05/11/04 by

Sadly - category:

Linux article

[Previous] [Next] User Comments DJ Wrote:

Enough, 3Q

05/17/04 16:10:54

Gapple wrote:

Really good, I love the webmaster!

06/02/04 08:57:12

Garbor Wrote:

What is the difference between Documentroot and UserDir? How is UserDir?

06/04/04 18:14:40

HX_CH Wrote:

How to set up ASP

06/05/04 17:47:18

Wrote:

Ask how to open the .fdf file? How do I install this software?

06/11/04 17:46:42

G5 Wrote:

I am very grateful to Saldy's GB2Unicode code to help me. No place to write, I have to believe my gratitude to this -_--

06/13/04 19:43:45

Iwind wrote:

DocumentRoot is the home directory site

Userdir is a user directory, you can use a folder TEST below to use it.

/ ~ TEST /

Also visited this directory

06/14/04 12:16:27

How to place apache php mysql wrote in Win XP:

I used IIS and PHP to work with IIS and PHP when I used the WIN2000 system. Now I have installed the XP system. I want to work with Apache and PHP, but always configured. Please help me think about it. Thank you! ! ^ _ ^

06/30/04 21:03:58

Thousand rock Wrote:

Apache Configure the CGI, the old 500 server internal error, what is the following information is displayed in Error.log?

[Tue Jul 06 14:16:01 2004] [Error] [Client 127.0.0.1] (OS 5) Rejects access. : COULDN'T Create Child Process: 720005: Test.cgi

[Tue Jul 06 14:16:01 2004] [Error] [Client 127.0.0.1] (OS 5) Rejects access. : COULDN'T SPAWN CHILD Process: D: /Apache/apache2/cgi-bin/test.cgi

07/06/04 16:26:22

Wind happy Wrote:

-----------------------------------

Excuse me:

If you are here in a directory, you will find a directory NewDirectory.

How to use http; // ip / newdirectory rather than

http; // ip / newdirectory / access

Which one is this? Which parameter is added to one /?

-----------------------------------

07/09/04 11:03:40

MOK WROTE:

Is there a line of alias in httpd.conf, don't add / just after NewDirectory

07/22/04 09:05:49

Imkow wrote:

This article is wrong!

Hear a miserable. . Originally wanted to correct it. 08/05/04 02:14:06

Biofo Wrote:

Userdir is actually a virtual directory

转载请注明原文地址:https://www.9cbs.com/read-118212.html

New Post(0)