当前位置: 技术问答>linux和unix
apache被限制
来源: 互联网 发布时间:2016-10-23
本文导语: [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...
[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 ~]
上面因该怎样设置?
[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目录的属组和权限改成和能访问一样的
chown -R apache:apache /test01
如果不是 你看看你能访问的那些目录的属主和权限是怎么样的
然后把/test01目录的属组和权限改成和能访问一样的