[Web] 系统优化: apache ! 欢迎大家来灌水。

weixin_38065208 weixin_38065208 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区

系统优化: Apache
目的: 通过合理的配置来优化系统性能,增加安全性。
前提条件: Red Hat Enterprise 3 AS update 2 , httpd-2.0.46-32.ent, 所有软件以rpm 方式安装。

小弟能力有限,只能做些简单的配置:

-----httpd.conf-------------
   ServerName redhat.example.com:80
   Listen 192.168.0.13:80
   NameVirtualHost 192.168.0.13
   <VirtualHost 192.168.0.13>;
      ServerName redhat.example.com
      DocumentRoot /var/www/html-redhat
   </VirtualHost>;
   <VirtualHost 192.168.0.13>;
      ServerName www13.bj.pnx
      DocumentRoot /var/www/html-www13
   </VirtualHost>;
   <Directory "/var/www/html-redhat">;
      AllowOverride AuthConfig
   </Directory>;
   <Directory "/var/www/html-www13">;
      Order Allow,Deny
      Allow from 192.168.0.17
   </Driectory>;
复制代码
以上只写出来更改的部分。更多的,还请大家来补充。

虽然本人一向倡导总结自己的帖子,但由于众所周知的原因。本帖不做总结,如有需要,请与本人联系。
...全文
评论 9
收藏 已收藏
分享
返回顶部