热门文章 | 热门软件| 热门源码 | 热门电影 | 知识库 | 联系我们
软件 源码 教程 影视 健康 招聘
  HTML | JavaScript | ASP | PHP | JSP | NET | VB | VC | VF | Windows | Linux | Mysql | Mssql | Oracle | Struts 
当前位置: 创世纪计算机资源网 -> 文章频道 ->linux 
站内搜索:
教你在Redhat 上搭建 Apache 服务器(4)
作者:赵珂 来源:cn.zhaoke.com 整理日期:2006-8-5

七. 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

[1]  [2]  [3]  [4]  
相关文章