栏目导航
热点推荐
- Linux新手要了解的十个知识点
- Linux下禁止别人ping
- Linux设备文件简介
- 如何修复Linux文件系统错误
- 笔/面试中常考到的一些linux脚本
- Linux操作系统上安装MySQL数据库
- Linux操作系统下隐藏文件的新方
- linux操作系统下的域名解析系统
- Linux与Unix比较Ftp/Telnet服务
- 虚拟主机为什么大多要使用Linux
- LinuxIPv6环境下DNS服务器配置攻
- 服务器维护:RHEL5系统下故障处
阅览排行
Apache [forbidden 403]错误的解决办法
www.jz123.cn 2008-11-17 来源: 中国建站 袁袁整理 我要投递新闻
Your static webpages should now be served correctly. If you continue to have errors, ensure that the Boolean which enables user home directories is enabled. You can set it using system-config-securitylevel. Select the SELinux tab, and then select the Modify SELinux Policy area. Select Allow HTTPD to read home directories. The changes take effect immediately.
所用命令解析:
ls -Z -d public_html/
#显示文件/目录的安全语境-Z, --context
Display security context so it fits on most displays. Displays only mode, user, group, security context and file name.-d, --directory
list directory entries instead of contents, and do not dereference symbolic links
chcon -R -t httpd_user_content_t public_html/
#修改文件/目录的安全语境-R, --recursive
change files and directories recursively-t, --type
set type TYPE in the target security context
上一篇:linux:.htaccess文件使用教程 下一篇:FreeBSD6.1快速安装配置Bugzilla2.22