我在Debian服务器上运行Apache 2并启用了mod_rewrite,但文件没有加载。
这是我的日志:
[Thu Dec 11 07:33:00 2014] [error] [client xx.xxx.xxx.xxx] File does not exist: /home/example.com/js, referer: http://example.com/forum/
我访问http://example.com/forum/时的正确位置必须是/home/example.com/forum/js,但我做错了。
我已将AllowOverride从None转为All但未发生任何事情。
这是我的虚拟主机配置:
<VirtualHost *:80>
ServerAdmin webmaster@example.com
ServerName example.com
ServerAlias www.example.com
DocumentRoot /home/example.com/
ErrorLog /home/logs/example.com/error.log
CustomLog /home/logs/example.com/access.log combined
<Directory "/home/example.com/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>