From 1fd3be3409970d844b9f5843f880ec29e10b8926 Mon Sep 17 00:00:00 2001 From: "Kaz Saita(WSL2)" Date: Mon, 5 Feb 2024 21:00:07 +0900 Subject: [PATCH] commit(auto) --- ...40205150537 Caddyをraspi4にインストール.md | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/content/20240205150537 Caddyをraspi4にインストール.md b/content/20240205150537 Caddyをraspi4にインストール.md index 8cb2e65..fae4c5e 100755 --- a/content/20240205150537 Caddyをraspi4にインストール.md +++ b/content/20240205150537 Caddyをraspi4にインストール.md @@ -126,12 +126,33 @@ $ sudo toucn /etc/caddy/Caddyfile Caddyfileを編集 ``` -localhost, 127.0.0.1 saipi4(みなさんのホスト名に変えてください) { +localhost, 127.0.0.1 192.168.1.100(自分で決めたIPアドレス) saipi4.local(自分で決めたhostname) { root * /var/www file_server } ``` +/var/wwwにindex.htmlを作成 + +``` + + + + This is the title of the webpage! + + +

All your base are belong to us.

+ + +``` + +caddyを起動 +``` +caddy run --config /etc/caddy/Caddyfile +``` +色々怒られるかもだけど、とりあえずネットワーク内から接続できる。 + +![[Pasted image 20240205205804.png]] ## cf. - [GitHub - caddyserver/caddy: Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS](https://github.com/caddyserver/caddy?tab=readme-ov-file#build-from-source)