• 您的位置php主机中国>apache>  ORACLE之APACHE WEB SERVER管理
  • ORACLE之APACHE WEB SERVER管理

  • 作者:  来源:  日期:2007-08-20
  • 1.查看当前UNIX环境下有无运行Apache Web Server

    在终端控制台上运行#ps -ef|grep httpd

    如果运行了,会列出一些包含路径信息的进程;去这个路径下找httpd.conf即可知服务器的配置。

    2.启动和关闭Apache Web Server

    在运行Apache/bin路径下找到apachectl命令

    #apachectl start

    #apachectl stop

    3.httpd.conf参数介绍:

    a.知道WEB的管理目录位置

    找到: ServerRoot "/../..."

    b.知道WEB的根目录位置

    找到: DocumentRoot "/../..."

    c.知道WEB各虚拟路径的映射

    Alias /icons/ "/opt/www/icons"

    ..........

    ScriptAlias /cgi-bin/ "opt/www/cgi-bin"

    ..........

    d.支持SSI



    增加Option +Includes +ExecCGI

    (其它参数说明:Indexes 容许路径下的目录浏览 FollowSymlinks 容许使用符号连接,连到别处

    MultiViews 找相似的文件名)

    去掉加注释的以下语句:

    AddType text/html .shtml

    AddHander server-parsed .shtml

    (如果想使htm文件支持SSI,增加以下语句

    AddType text/html .htm

    AddHander server-parsed .htm

    ) 5.支持CGI

    去掉加注释的以下语句:

    AddHandler cgi-script .pl

    AddHander cgi-script .cgi 6.初始的文件名

    DirectoryIndex  index.html

    (如果想增加别的类别文件,只需在这后面增加index.htm或index.php即可)

    7.性能优化

    MaxKeepAliveRequests 1024

    MaxClient 256

     
  • 上一篇:Linux防火墙上的Apache反向代理   下一篇:ORACLE之APACHE虚拟服务器设置
  • 赞助商链接