From: Luis Gil Date: Fri, 12 Aug 2016 11:21:58 +0000 (+0000) Subject: Commiting to repor to not get later errors and continue the work elsewhere. X-Git-Tag: 2.5.0-alpha~1288 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=452f9ebddbf9beb741283e7def4261a957479a2b;p=apache Commiting to repor to not get later errors and continue the work elsewhere. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1756150 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/howto/auth.xml.es b/docs/manual/howto/auth.xml.es index 992c76d37b..b2d7aeac44 100644 --- a/docs/manual/howto/auth.xml.es +++ b/docs/manual/howto/auth.xml.es @@ -166,7 +166,7 @@ AllowOverride AuthConfig

Para crear el fichero de contraseñas, usa la utilidad htpasswd que viene con Apache. Esta herramienta se - encuentra en el directorio bin en donde sea que se ha + encuentra en el directorio /bin en donde sea que se ha instalado el Apache. Si ha instalado Apache desde un paquete de terceros, puede ser que se encuentre en su ruta de ejecución.

@@ -180,35 +180,39 @@ AllowOverride AuthConfig te pedirá que la vuelvas a escribir para confirmarla:

- # htpasswd -c /usr/local/apache/passwd/passwords rbowen
+ $ htpasswd -c /usr/local/apache/passwd/passwords rbowen
New password: mypassword
Re-type new password: mypassword
Adding password for user rbowen
-

If htpasswd is not in your path, of course - you'll have to type the full path to the file to get it to run. - With a default installation, it's located at +

Si htpasswd no está en tu variable de entorno "path" del + sistema, por supuesto deberás escribir la ruta absoluta del ejecutable para + poder hacer que se ejecute. En una instalación por defecto, está en: /usr/local/apache2/bin/htpasswd

-

Next, you'll need to configure the server to request a - password and tell the server which users are allowed access. - You can do this either by editing the httpd.conf - file or using an .htaccess file. For example, if - you wish to protect the directory - /usr/local/apache/htdocs/secret, you can use the +

Lo próximo que necesitas, será configurar el servidor para que pida una + contraseña y así decirle al servidor que usuarios están autorizados a acceder. + Puedes hacer esto ya sea editando el fichero httpd.conf + de configuración o usando in fichero .htaccess. Por ejemplo, + si quieres proteger el directorio + /usr/local/apache/htdocs/secret, puedes usar las siguientes + directivas, ya sea en el fichero .htaccess localizado en following directives, either placed in the file - /usr/local/apache/htdocs/secret/.htaccess, or - placed in httpd.conf inside a <Directory - "/usr/local/apache/htdocs/secret"> section.

+ /usr/local/apache/htdocs/secret/.htaccess, o + en la configuración global del servidor httpd.conf dentro de la + sección <Directory + "/usr/local/apache/htdocs/secret"> section. como se muesta a continuacion:

+<Directory "/usr/local/apache/htdocs/secret"> AuthType Basic AuthName "Restricted Files" # (Following line optional) AuthBasicProvider file AuthUserFile "/usr/local/apache/passwd/passwords" Require user rbowen +</Directory>

Let's examine each of those directives individually. The