19-07-2020

-python 3.8
-htpasswd
-modules Powershell
This commit is contained in:
2020-07-19 15:35:28 +02:00
parent b30fc7af77
commit fc437860a8
6 changed files with 204 additions and 6 deletions

View File

@@ -385,6 +385,14 @@ $ sudo apachectl stop
$ sudo apachectl start
```
Pour connaître la configuration dans httpd.conf, lancez `mod_wsgi-express module-config`
```bash
$ mod_wsgi-express module-config
LoadModule wsgi_module "/usr/local/lib/python3.8/site-packages/mod_wsgi/server/mod_wsgi-py38.cpython-38-darwin.so"
WSGIPythonHome "/usr/local/Cellar/python@3.8/3.8.3_2/Frameworks/Python.framework/Versions/3.8"
```
### Liens:

View File

@@ -0,0 +1,36 @@
# Protéger l'accès à une page par un mot-de-passe
https://www.it-connect.fr/securiser-les-authentifications-htaccess-avec-loption-digest%EF%BB%BF/
On utilise 2 fichiers (.htaccess et .htpasswd):
### .htaccess
Il est à placer dans le dossier à protéger.
https://httpd.apache.org/docs/current/fr/howto/htaccess.html
chmod 755
```http
AuthType Basic
AuthName "Protected Site"
AuthUserFile /Users/bruno/Sites/.htpasswd
require valid-user
```
### .htpasswd
On peut le placer n'importe où.
Il contient les paires d'identifiants / mots de passe
```http
bruno:$2y$10$eoOcCeh6lKR.yLc7B44bD.9AAGI90XyYaXZrSbzdswKuL6Q5E9oX2
```
http://www.htaccesstools.com/htpasswd-generator

View File

@@ -16,3 +16,5 @@
[Xhprof](Xhprof.md)
[Protéger l'accès à une page](htpasswd.md)