我正在尝试安装和配置RSS 休息室在我的 Raspberry PI (Wheezy 3.2.27) 上。这是我在访问时获得的结果http://localhost/rsslounge
:
Apache 模块“mod_rewrite”未加载
但是,重写模块已启用:
ab@1234 : sudo apache2ctl -t -D DUMP_MODULES
Loaded Modules:
core_module (static)
log_config_module (static)
logio_module (static)
version_module (static)
mpm_prefork_module (static)
http_module (static)
so_module (static)
alias_module (shared)
auth_basic_module (shared)
authn_file_module (shared)
authz_default_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cgi_module (shared)
deflate_module (shared)
dir_module (shared)
env_module (shared)
headers_module (shared)
mime_module (shared)
negotiation_module (shared)
php5_module (shared)
reqtimeout_module (shared)
rewrite_module (shared)
setenvif_module (shared)
ssl_module (shared)
status_module (shared)
Syntax OK
此外,我还关注这个测试并且服务器运行正常,因此问题出在 Apache 和 RSSLounge 之间的链接上。
这是我的/etc/apache2/sites-availables/default
文件:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
RewriteEngine on
</Directory>
(rsslounge 文件夹显然位于/var/www/
)
我的配置有什么问题?
答案1
RSSLounge 是否位于 /var/www 中?如果您使用软件包安装它,它可能位于 /usr/share/rsslounge 中,并且未使用您的选项“RewriteEngine on”。将其放入虚拟主机中,以便在所有目录中可用。