专注于互联网--专注于架构

最新标签
网站地图
文章索引
Rss订阅

首页 »web服务器 » apache安装配置:Apache 安装、配置、优化 »正文

apache安装配置:Apache 安装、配置、优化

来源: 发布时间:星期日, 2009年1月4日 浏览:17次 评论:0
工作问题原因有 2是代码不科学性 2是 apache 设置问题
  
  以下是对设置点改动:
  
  代码:
  # KeepAlive: Whether or not to allow persistent connections(more than
  # _disibledevent=/usr/local/apache2/bin:$PATH
  # make
  ----------------------------------------------------------------------
  Libraries have been ed in:
  /usr/local/apache2/modules
  If you ever happen to want to link against ed libraries
  in a given directory, LIBDIR, you must either use libtool, and
  specy the full pathname of the library, or use the `-LLIBDIR'
  flag during linking and do at least one of the following:
  - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
  during execution
  - add LIBDIR to the `LD_RUN_PATH' environment variable
  during linking
  - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
  - have your system administrator add LIBDIR to `/etc/ld.so.conf'
  See any operating system documentation about shared libraries for
  more information, such as the ld(1) and ld.so(8) manual pages.
  ----------------------------------------------------------------------
  chmod 755 /usr/local/apache2/modules/mod_limitipconn.so
  [activating module `limitipconn' in /usr/local/apache2/conf/httpd.conf] 
  
  检查 httpd.conf 文件发现增加了
  
  代码:
  LoadModule limitipconn_module modules/mod_limitipconn.so 
  
  同时需要设置以下参数在 httpd.conf 中 , 也可以在单个虚拟服务器中
  
  代码:
  ExtendedStatus On
  # Only needed the module is compiled as a DSO
  LoadModule limitipconn_module lib/apache/mod_limitipconn.so
  <IfModule mod_limitipconn.c>
  <Location /somewhere>
  MaxConnPerIP 3
  # exempting images from the connection limit is often a good

相关文章

读者评论

发表评论

  • 昵称:
  • 内容: