owncloud 的 vhost 配置

owncloud 的 vhost 配置

我使用apache2owncloud 进行托管。我为 owncloud 配置了一个 vhost 文件,但每次我访问该网站时,我的浏览器都会下载一个 ruby​​ 文件。

这是我的虚拟主机配置:

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    ServerName http://rsserver.fritz.box
    DocumentRoot /var/www/owncloud/

    <Directory /var/www/owncloud/>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride All
            Order allow,deny
            allow from all
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
        AllowOverride None
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
         Allow from all
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog ${APACHE_LOG_DIR}/access.log combined

       Alias /doc/ "/usr/share/doc/"
       <Directory "/usr/share/doc/">
            Options Indexes MultiViews FollowSymLinks
            AllowOverride None
            Order deny,allow
            Deny from all
            Allow from 127.0.0.0/255.0.0.0 ::1/128
      </Directory>
 </VirtualHost>

Apache 错误日志告诉我:

[Sat Jun 16 20:46:04 2012] [error] [client xx.xx.xx.xx] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /var/www/owncloud/core/templates/403.php

mod_rewrite已启用。

哪里有问题?

相关内容