LAMP之路

不积跬步,无以至千里!

apache伪静态增加.htaccess文件后出现Internal Server Error

2012-10-18 一抹阳光 WEB服务器

apche伪静态增加.htaccess文件后出现:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

解决办法:

首先检查httpd.conf中mod_rewrite.so模块是否开启,

然后查看虚拟主机的配置

<VirtualHost *:80>
DocumentRoot “E:/webroot/xxx”
ServerName www.xxx.com
</VirtualHost>
<Directory “E:/webroot/xxx”>
Options  All
AllowOverride ALL
Allow from all
</Directory>
AllowOverride None 修改为 AllowOverride ALL

重启apache。