- 论坛徽章:
- 0
|
本帖最后由 yagas 于 2010-07-07 09:18 编辑
我的VPS服务器是CentOS 5.3(64bit) 的系统,我的apache老是设置不正确,来此向大家请教。
从错误日志上看,老是说我没有设置 FollowSymLinks ,可是我明明已经设置了呀?不知道这个问题应该怎么解决?网上搜索到很多,但没有一篇是能够解决这个问题的。
以下是我的apache的设置内容:- NameVirtualHost *:80
- #NameVirtualHost *:8000
- #
- # NOTE: NameVirtualHost cannot be used without a port specifier
- # (e.g. :80) if mod_ssl is being used, due to the nature of the
- # SSL protocol.
- #
- #
- # VirtualHost example:
- # Almost any Apache directive may go into a VirtualHost container.
- # The first VirtualHost section is used for requests without a known
- # server name.
- #
- <DirectoryMatch "/21cnci/(.+)">
- Options FollowSymLinks
- AllowOverride All
- Order allow,deny
- Allow from all
- </DirectoryMatch>
- <VirtualHost *:80>
- ServerAdmin tech@xxx.com
- DocumentRoot /21cnci/xxx.com
- ServerName xxx.com
- ErrorLog /etc/httpd/logs/xxx_error_log
- #CustomLog logs/dummy-host.example.com-access_log common
- </VirtualHost>
复制代码 以下是错误日志文件:- Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /21cnci/xxx.com/, referer: http://www.xxx.com
复制代码 |
|