七. Apache HTTP的配置文件
Apache配置文件为httpd.conf, 所在目录/conf, 这里我只对本文apache用
的httpd.conf文件列出一个清单.更多信息的httpd.conf文件指令解释请
参考网上相关内容.
ServerType standalone
ServerRoot "/www"
PidFile /www/log/httpd.pid
ScoreBoardFile /www/logs/httpd.scoreboard
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 150
MaxRequestPerChild 0
LISTEN 210.77.144.83:80
BindAddress *
LoadModule name file
AddModule header file name
Port 80
User nobody
Group nobody
ServerAdmin root@islab.org
ServerName www.islab.org
DocumentRoot "/www/htdocs"
Directory
UserDir
DirectoryIndex files
DirectoryIndex index.html
AccessFileName .htaccess
Order allow,deny
Deny from all
Satisfy All
UseCanonicalName On
TypesConfig
TypesConfig /www/conf/mime.types
DefaultType text/plain
MIMEMagicFile /www/conf/magic
MIMEMagicFile /www/conf/magic
HostnameLookups Off
ErrorLog /www/logs/error_log
LogLevel warn
LogFormat
CustomLog /www/logs/access_log common
ServerSignature On
Alias /icons/ "/www/icons/"
ScriptAlias /cgi-bin/ "/www/cgi-bin/"
IndexOptions FancyIndexing
NameVitualHost *
VirtualHost