Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.Htaccess - Server error

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
like image 323
Jacob Avatar asked Jan 08 '12 23:01

Jacob


People also ask

Why do I keep getting 500 internal server error?

The HTTP status code 500 is a generic error response. It means that the server encountered an unexpected condition that prevented it from fulfilling the request. This error is usually returned by the server when no other error code is suitable.

How do I fix error 500 in Java?

Problem of authorization. If the web server does not have authorization to view the site files, an HTTP 500 error can be triggered. The solution to this problem is to recursively modify the permissions of the website file. .


1 Answers

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.

like image 161
Jack Vo Avatar answered Sep 30 '22 06:09

Jack Vo