linux网页被安全限制,apache被限制解决方法

apache被限制解决方法

apache被限制解决方法

日期:2014-05-16  浏览次数:20333 次

apache被限制

[Sat Oct 23 17:00:33 2010] [error] [client 172.18.85.230] (13)Permission denied: access to /test01/index.html denied

[Sat Oct 23 17:00:33 2010] [error] [client 172.18.85.230] File does not exist: /var/www/html/favicon.ico

[Sat Oct 23 17:00:33 2010] [error] [client 172.18.85.230] (13)Permission denied: access to /test01/index.html denied

[Sat Oct 23 17:00:34 2010] [error] [client 172.18.85.230] File does not exist: /var/www/html/favicon.ico

[Sat Oct 23 17:01:00 2010] [notice] caught SIGTERM, shutting down

[Sat Oct 23 17:01:01 2010] [notice] SELinux policy enabled; httpd running as context root:system_r:httpd_t:s0

[Sat Oct 23 17:01:01 2010] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)

[Sat Oct 23 17:01:01 2010] [notice] Digest: generating secret for digest authentication ...

[Sat Oct 23 17:01:01 2010] [notice] Digest: done

[Sat Oct 23 17:01:02 2010] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations

导致虑拟目录不能访问。其他可以访问。

allow_httpd_anon_write --> off

allow_httpd_bugzilla_script_anon_write --> off

allow_httpd_cvs_script_anon_write --> off

allow_httpd_mod_auth_pam --> off

allow_httpd_nagios_script_anon_write --> off

allow_httpd_prewikka_script_anon_write --> off

allow_httpd_squid_script_anon_write --> off

allow_httpd_sys_script_anon_write --> off

httpd_builtin_scripting --> on

httpd_can_network_connect --> off

httpd_can_network_connect_db --> off

httpd_can_network_relay --> off

httpd_can_sendmail --> on

httpd_disable_trans --> off

httpd_enable_cgi --> on

httpd_enable_ftp_server --> off

httpd_enable_homedirs --> on

httpd_read_user_content --> off

httpd_rotatelogs_disable_trans --> off

httpd_ssi_exec --> off

httpd_suexec_disable_trans --> off

httpd_tty_comm --> on

httpd_unified --> on

httpd_use_cifs --> off

httpd_use_nfs --> off

You have new mail in /var/spool/mail/root

[root@localhost ~]

上面因该怎样设置?

------解决方案--------------------

如果你的apache用户是apache的用户就这样

chown -R apache:apache /test01

如果不是 你看看你能访问的那些目录的属主和权限是怎么样的

然后把/test01目录的属组和权限改成和能访问一样的

免责声明: 本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值