From 2f482c1d87ec3c16a7cc66319a081f807abd0078 Mon Sep 17 00:00:00 2001 From: Bruno 21 Date: Mon, 10 Jun 2019 20:23:30 +0200 Subject: [PATCH] bugfix correction mkdocs.yml lignes solus Error parsing yaml file: mapping values are not allowed here - Solus: - Index: solus/index.md - Apache: solus/apache.md - PHP: solus/php.md au lieu de: - Solus: - Index: solus/index.md - Apache: solus/apache.md - PHP: solus/php.md --- docs/Mint/Mint.md | 22 ++++++++++++++++++++++ mkdocs.yml | 4 ++-- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/docs/Mint/Mint.md b/docs/Mint/Mint.md index a7a6ff3..eb1aae0 100644 --- a/docs/Mint/Mint.md +++ b/docs/Mint/Mint.md @@ -89,6 +89,14 @@ bruno@MintBook:/etc/nginx$ tree **Configuration:** +Le fichier `/etc/nginx/nginx.conf` contient la configuration générale de nginx. + +```nginx +user www-data; +``` + + + Créer un fichier qui contiendra les configurations du site dans le répertoire `/etc/nginx/sites-available/`. Le dossier contient déjà un fichier par défaut: `/etc/nginx/sites-available/default` @@ -169,6 +177,14 @@ server { +Donner les droits à Nginx pour le dossuier root: + +```bash +$ sudo chown -R www-data:www-data /home/bruno/Sites +``` + + + Déclarer le socket Unix de PHP-FPM au niveau de Nginx: il faut modifier ou créer le fichier `/etc/nginx/conf.d/php7-fpm.conf` ```nginx @@ -257,6 +273,12 @@ $ systemctl status nginx #### HTTPS: +https://linoxide.com/linux-how-to/create-self-signed-ssl-certificate-nginx-ubuntu/ + +https://www.digitalocean.com/community/tutorials/how-to-create-a-self-signed-ssl-certificate-for-nginx-in-ubuntu-18-04 + + + **Créer une clé et un certificat. auto-signé:** ```bash diff --git a/mkdocs.yml b/mkdocs.yml index 083f45a..2e34aa4 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -144,8 +144,8 @@ nav: - Scripts: Synology/scripts.md - Solus: - Index: solus/index.md - - Apache: solus/apache.md - - PHP: solus/php.md + - Apache: solus/apache.md + - PHP: solus/php.md - Divers: - Index: Divers/index.md - batch: