今天写一下LINUX下的APACHE的配置方法。
APACHE是作为WEB服务器的。它的优点在于用缓存方式来加快网页的搜索速度。
APACHE缺省只支持静态网页
LINUX下有APACHE的RPM包
安装上第一张盘里的httpd-2.0.40-21.i386.rpm 包
1 /etc/httpd/conf.d 放在这里的都是动态网页的配置文件
2 /etc/httpd/conf/httpd.conf 主配置文件
3 /var/log/httpd   日志文件目录。
4 /var/www/html 网页的存放目录
5 /etc/rc.d/init.d 工具文件目录。
6 vi /etc/httpd/conf/httpd.conf
  
  Section 1: Global Environment(全局设置)
  
 ServerRoot "/etc/httpd" (APACHE安装路径) 
 DirectoryIndex index.html index.html.var (网页首页的第一页)
 Timeout 300 (超出时间)
 KeepAlive Off(保持Httpd激活)
 MaxKeepAliveRequests 100 (保持的连接的人数,改成0就是说没有人数的限制)
 KeepAliveTimeout 15 (保持激活的超出时间)
 prefork MPM (预派生模式)
 worker MPM (工作者模式)
 Listen 80 (侦听的端口)
 LoadModule (加载模块)

       Section 2: 'Main' server configuration(服务器配置)
  User apache Group apache (由谁启动APACHE服务器)
  ServerAdmin root@localhost (网页出错给谁发信通知)
  ServerName new.host.name:80(设置网站的域名)
  DocumentRoot "/var/www/html"(网页存放的路径)
  <Directory /> (目录容器)
  Options (选项) FollowSymLinks(允许符号连接,允许这个网页以外的地方)
  AccessFileName .htaccess(访问文件定义名称文件容器)
  <Files ~ "^\.ht"> 想把所有以 .ht 开头的文件做限制
    Order allow,deny 定义访问顺序 先允许,后拒绝
    Deny from all  拒绝所有人
</Files>