Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0336F11AA6 for ; Fri, 18 Apr 2014 17:40:10 +0000 (UTC) Received: (qmail 31272 invoked by uid 500); 18 Apr 2014 17:40:06 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 31241 invoked by uid 500); 18 Apr 2014 17:40:06 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 31233 invoked by uid 99); 18 Apr 2014 17:40:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Apr 2014 17:40:06 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of raubvogel@gmail.com designates 209.85.215.49 as permitted sender) Received: from [209.85.215.49] (HELO mail-la0-f49.google.com) (209.85.215.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Apr 2014 17:40:02 +0000 Received: by mail-la0-f49.google.com with SMTP id mc6so1543593lab.36 for ; Fri, 18 Apr 2014 10:39:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=eVaYwKRH7zDYiJ4Q36/agvIYuIfk2A2R2/blhohPJC0=; b=woixJ/ymmT115rtQof9GjMX/Fq35EVAj3PYNHfj/lXtONj8Jh9QVLsHgzw4p1vp/pr l3bfs4Hpj0m8QNXVEZ8FWB54zDBRoWw5ErIeqbx6QVDaCjrHzW1MRXC37R7xVbKogCYw yDXG09ceyy95sdg2DW0DtO+TP6kP2lEsUbNiwaJW5XTjST67DNJY3JqAllkQF9paJTd/ qCSlWcAi9dBzsASWyUZGCgKCOanWKN3Xiznxh0MFN576xZZ74QOh58eCzEr9MXOcRJJo iSYHFpgmNIVh0+mhxVH6iEa+pSljzMg4k3SFSqwYcatIftqDW4ykQm5HPOOlVRMKDO+m T1EQ== MIME-Version: 1.0 X-Received: by 10.112.28.82 with SMTP id z18mr11724931lbg.18.1397842780501; Fri, 18 Apr 2014 10:39:40 -0700 (PDT) Received: by 10.112.173.70 with HTTP; Fri, 18 Apr 2014 10:39:40 -0700 (PDT) In-Reply-To: References: Date: Fri, 18 Apr 2014 13:39:40 -0400 Message-ID: From: Mauricio Tavares To: users@httpd.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Subject: =?UTF-8?Q?Re=3A_=5Busers=40httpd=5D_=C2=BFC=C3=B3mo_se_soluciona_=22500_Internal?= =?UTF-8?Q?_Server_Error=22_=3F?= 2014-04-18 13:29 GMT-04:00 Humberto Castro : > ************************************************** > =C2=BFC=C3=B3mo se soluciona '500 Internal Server Error' ? > ************************************************** > As http://en.wikipedia.org/wiki/List_of_HTTP_status_codes mentions, 500 is a bit of a catch all for the errors not covered by the other 5xx error messages. Did you check the log file? > Hola. Estoy configurando Acceso Restringido a un directrio dentro de mi > sitio web, usando el archivo '.htaccess' el cual hace referencia al archi= vo > en donde se encuentra la lista de usuarios, denominado '.htpasswd'; pero > habiendo ya cargado los dos archivos (a la misma carpeta), cuando intento > acceder mediante el explorador de internet a la carpeta protegida, la > primera vez se muestra la ventana emergente pidiendo el Nombre_de_Usuario= y > la Contrase=C3=B1a, pero una vez entro los datos se muestra el siguiente = mensaje: > > -------------------------------------------------- > Internal Server Error > > The server encountered an internal error or misconfiguration and was unab= le > to complete your request. > > Please contact the server administrator, support@dominio.com and inform t= hem > of the time the error occurred, and anything you might have done that may > have caused the error. > > More information about this error may be available in the server error lo= g. > -------------------------------------------------- > > Y las siguientes veces que vuelvo a intentar entrar, ya ni siquiera me pi= de > el Nombre_de_Usuario y Contrase=C3=B1a, sino que de una vez se muestra el= mismo > mensaje de error anterior. =C2=BFQu=C3=A9 podr=C3=ADa estar haciendo mal = en el > procedimiento ? Gracias y ojal=C3=A1 me puedan ayudar. > > Inicialmente intent=C3=A9 la protecci=C3=B3n colocando el archivo .htpass= swd en la > raiz, y de acuerdo a esto colocando la primera linea de .htaccess as=C3= =AD: > 'AuthUserFile /.htpasswd'. En este punto del tiempo el inconveniente > presentado fue exactamente el mismo (la primera vez el sistema me pidi=C3= =B3 el > Nombre_de_Usuario y Contrase=C3=B1a, y luego me present=C3=B3 el mensaje = de error; las > siguientes veces ni siquiera me pidi=C3=B3 los datos del usuario y de una= vez me > present=C3=B3 el error). Por eso opt=C3=A9 por pasar el '.htpasswd' al mi= smo > directorio protegido para detectar bien cu=C3=A1l era el error de mi part= e. > > He probado tambi=C3=A9n dejando el archivo '.htaccess' completamente en b= lanco y, > de esta forma no se me genera ning=C3=BAn mensaje de error, claro que obv= iamente > no me pide datos para validar Nombre_de_Usuario. > > Inicialmente esperaba que la contrase=C3=B1a original para el usuario den= tro del > archivo '.htpasswd' fuera encriptada la funci=C3=B3n crypt() de PHP, pero= esto no > se dio. > > -------------------------------------------------- > EL contenido de mi archivo '.htaccess' es: > AuthUserFile /ruta/.htpasswd > AuthName 'Por favor, introduzca usuario y contrase=C3=B1a' > AuthType Basic > Require valid-user > > El contenido del archivo '.htpasswd' es: > uprueba:cumGzwtU82Vts > -------------------------------------------------- > > He detectado que al quitar la linea 'Require valid-user' no se genera el > error - pero obviamente deja entrar al directorio sin validar el usuario. > Inclusive he intentado cambiando esta linea por 'Require user uprueba', p= ero > de esta forma se genera exactamente el mismo mensaje de error. > > Tambi=C3=A9n he cambiado los permisos a ambos archivos a '755', inclusive= a > '777', pero se sigue generando el error. > I do not know if I would want my password file to be readable by everyone + the cat. https://www.dokuwiki.org/faq:error500 has a few thoughts on that too. > > -- > HUMBERTO --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org