摘要: 在httpd.conf中加入:<VirtualHost 192.168.100.116>ServerName 192.168.100.116<Location />Deny from all</Location></VirtualHost>这样当使用IP访问是会产生403错误。PS:发现使用IP是可以访问百度的。再想想,也没想出禁止访问有啥好处。。。PSS:可能在一个apache中配了多个VirtualHost时,可以借此来避免用户使用未知的domain(但确指向了此IP)使用第一个VirtualHost的配置。 阅读全文
posted @ 2012-08-02 13:40 酱油猫 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 1. IntroductionSecurity-Enhanced Linux (SELinux) is a mandatory access control (MAC) security mechanism implemented in the kernel. SELinux was first introduced in CentOS 4.2. Enable & Disable SELinux ( SELinux Mode )Enforcing: The default mode which will enable and enforce the SELinux security p 阅读全文
posted @ 2012-08-02 12:35 酱油猫 阅读(644) 评论(0) 推荐(1) 编辑