的.htaccess - 服务器错误 [英] .Htaccess - Server error

查看:799
本文介绍了的.htaccess - 服务器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到以下错误

服务器遇到一个内部错误,无法完成您的请求。无论是服务器过载或出现在CGI脚本错误。

如果你认为这是一个服务器错误,请与网站管理员联系。

错误500

184.82.228.38 周一1月9日二时48分12秒2012 阿帕奇/ 2.2.21(Unix的)DAV / 2了mod_ssl / 2.2.21的OpenSSL / 1.0.0c PHP / 5.3.8 mod_a preq2-20090110 / 2.7.1的mod_perl / 2.0.5的Perl / v5.10.1

进出口运行XAMPP的服务器 这里是我的htaccess的文件,我不明白是什么问题。


 与AuthType基本
                AuthName指令会员区
                的AuthUserFile /opt/lampp/htdocs/.htpasswd
                需要有效的用户

                < FilesMatch(异步上传\ .PHP | WP-cron的\ .PHP | XMLRPC \ .PHP)$>
                满足任何
                订购允许,拒绝
                所有允许
                从没有拒绝
                < / FilesMatch>
#BEGIN字preSS
< IfModule mod_rewrite.c>
RewriteEngine叙述上
的RewriteBase /件/
的RewriteCond%{} REQUEST_FILENAME!-f
的RewriteCond%{} REQUEST_FILENAME!-d
重写规则。 /members/index.php [L]
< / IfModule>

#结束字preSS
 

解决方案

我之前得到了同样的错误,问题是htpasswd的位置路径。请确保您已设置了正确的路径,该文件。

I'm getting the following error

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

If you think this is a server error, please contact the webmaster.

Error 500

184.82.228.38 Mon Jan 9 02:48:12 2012 Apache/2.2.21 (Unix) DAV/2 mod_ssl/2.2.21 OpenSSL/1.0.0c PHP/5.3.8 mod_apreq2-20090110/2.7.1 mod_perl/2.0.5 Perl/v5.10.1

Im running a XAMPP server here is my htaccess file, i don't understand what the problem is.


    AuthType Basic
                AuthName "Members Area"
                AuthUserFile /opt/lampp/htdocs/.htpasswd
                Require valid-user

                <FilesMatch "(async-upload\.php|wp-cron\.php|xmlrpc\.php)$">
                Satisfy Any
                Order allow,deny
                Allow from all
                Deny from none
                </FilesMatch>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /members/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /members/index.php [L]
</IfModule>

# END WordPress

解决方案

I got the same error before and the problem is the location path of the .htpasswd. Make sure you have set the correct path for that file.

这篇关于的.htaccess - 服务器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆