Correcting typo in .htpasswd name

Julien Deswaef 2018-10-28 19:39:12 -04:00
parent 211c8f25f9
commit e2b02ac6ad

@ -26,31 +26,31 @@ This process depends on the server you are using. Some providers may require you
### Create a .htpasswd file
The `.httpasswd` file contains the user name and password used for login to your web server. Please notice that the password is stored in encrypted form, which requires you to encrypt your password before creating the `.httpasswd` file!
The `.htpasswd` file contains the user name and password used for login to your web server. Please notice that the password is stored in encrypted form, which requires you to encrypt your password before creating the `.htpasswd` file!
Here are three ways of creating your own `.httpasswd` file:
Here are three ways of creating your own `.htpasswd` file:
**1) Example file**
Example `.httpasswd` file (user name: "test", password: "test"):
Example `.htpasswd` file (user name: "test", password: "test"):
```.htpasswd
test:$apr1$a52u9ILP$XTNG8qMJiEXSm1zD0lQcR0
```
Just copy and paste the contents to your `.httpasswd` file.
Just copy and paste the contents to your `.htpasswd` file.
**2) Online generator (read warning!)**
You can create your own `.httpasswd` file online using a `.httpasswd` generator like this: http://www.htaccesstools.com/htpasswd-generator/
You can create your own `.htpasswd` file online using a `.htpasswd` generator like this: http://www.htaccesstools.com/htpasswd-generator/
**WARNING!**
- Never insert real passwords to an online generator!
- Be aware that the [`.httpasswd` generator](http://www.htaccesstools.com/htpasswd-generator/) doesn't support `https` and therefore all data entered is clearly visible to anyone listening!
- Be aware that the [`.htpasswd` generator](http://www.htaccesstools.com/htpasswd-generator/) doesn't support `https` and therefore all data entered is clearly visible to anyone listening!
**3) Generate your own password**
Another way to create your own `.httpasswd` file is to run this script on your server (it'll output the data for you, you just have to paste it int a `.httpasswd` file):
Another way to create your own `.htpasswd` file is to run this script on your server (it'll output the data for you, you just have to paste it int a `.htpasswd` file):
```PHP
<?php