From f278d9625158873f9bd20b66fa14092dd9f3f64d Mon Sep 17 00:00:00 2001 From: "Kaz Saita(WSL2)" Date: Tue, 13 Feb 2024 00:00:12 +0900 Subject: [PATCH] commit(auto) --- content/20240212183719 Raspi4でnginxを設定する.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/content/20240212183719 Raspi4でnginxを設定する.md b/content/20240212183719 Raspi4でnginxを設定する.md index 4a15c4b..0945ed6 100755 --- a/content/20240212183719 Raspi4でnginxを設定する.md +++ b/content/20240212183719 Raspi4でnginxを設定する.md @@ -2,19 +2,23 @@ # 20240212183719 Raspi4でnginxを設定する #raspi #server #nginx -nginxは、try_filesがうまく動いていないので要調査 +### インストール +``` +$ sudo apt install nginx +``` +### 設定 ``` $ sudo nano /etc/nginx/sites-available ``` quartzを使いたいので、 try_filesの所をこんな感じに変える。 - ``` try_files $uri $uri.html $uri/ =404; ``` +### 起動 ``` $ sudo systemctl daemon-reload $ sudo systemctl enable nginx