免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1552 | 回复: 0
打印 上一主题 下一主题

[Web] 请教一个apache的设置问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-07-07 09:14 |只看该作者 |倒序浏览
本帖最后由 yagas 于 2010-07-07 09:18 编辑

我的VPS服务器是CentOS 5.3(64bit) 的系统,我的apache老是设置不正确,来此向大家请教。
从错误日志上看,老是说我没有设置 FollowSymLinks ,可是我明明已经设置了呀?不知道这个问题应该怎么解决?网上搜索到很多,但没有一篇是能够解决这个问题的。

以下是我的apache的设置内容:
  1. NameVirtualHost *:80
  2. #NameVirtualHost *:8000

  3. #
  4. # NOTE: NameVirtualHost cannot be used without a port specifier
  5. # (e.g. :80) if mod_ssl is being used, due to the nature of the
  6. # SSL protocol.
  7. #

  8. #
  9. # VirtualHost example:
  10. # Almost any Apache directive may go into a VirtualHost container.
  11. # The first VirtualHost section is used for requests without a known
  12. # server name.
  13. #

  14. <DirectoryMatch "/21cnci/(.+)">
  15.     Options FollowSymLinks
  16.     AllowOverride All
  17.     Order allow,deny
  18.     Allow from all
  19. </DirectoryMatch>


  20. <VirtualHost *:80>
  21.     ServerAdmin tech@xxx.com
  22.     DocumentRoot /21cnci/xxx.com
  23.     ServerName xxx.com
  24.     ErrorLog /etc/httpd/logs/xxx_error_log
  25.     #CustomLog logs/dummy-host.example.com-access_log common
  26. </VirtualHost>
复制代码
以下是错误日志文件:
  1. Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /21cnci/xxx.com/, referer: http://www.xxx.com
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP