首页 | 源码下载 | 网站模板 | 网页特效 | 广告代码 | 网页素材 | 字体下载 | 书库 | 站长工具
会员投稿 投稿指南 RSS订阅
当前位置:主页>服务器类>Linux服务器>资讯:Apache [forbidden 403]错误的解决办法

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

评论总数:1 [ 查看全部 ] 网友评论


关于我们隐私版权广告服务友情链接联系我们网站地图