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

作者:笨小孩 发布于:2012-10-18 16:20 分类: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。

标签: Apache htaccess

发表评论:

手机版 | 
Copyright © 2012 lamp46.com All Right Reserved. sitemap