commit(auto)

This commit is contained in:
Kaz Saita(WSL2) 2024-02-11 18:00:10 +09:00
parent cc8ca0ef05
commit a7c48db463
2 changed files with 6 additions and 4 deletions

View file

@ -38,7 +38,7 @@ $ sudo apt full-upgrade
$ sudo reboot (最新にしたので再起動)
```
### WEBサーバーを入れる
### WEBサーバー
- [[20240205150537 Caddyをraspi4にインストール|Caddyをraspi4にインストール]]
- [[20240205164639 Caddyの設定|Caddyの設定]]

View file

@ -1,6 +1,7 @@
# 20240205150537 Caddyをraspi4にインストール
#raspi #caddy #web_server
### インストール
[How to Setup a Raspberry Pi Caddy Web Server - Pi My Life Up](https://pimylifeup.com/raspberry-pi-caddy-web-server/) の方法が現在 20240205 は利用できない。
```
@ -42,12 +43,13 @@ $ sudo chmod a+rw /var/www
Caddyfileを /etc 以下に作成
```
$ sudo mkdir /etc/caddy/
$ sudo toucn /etc/caddy/Caddyfile
$ sudo touch /etc/caddy/Caddyfile
$ sudo chmod a+rw /etc/caddy/Caddyfile
```
Caddyfileを編集
```
localhost, 127.0.0.1 192.168.1.100(自分で決めたIPアドレス) saipi4.local(自分で決めたhostname) {
localhost, 127.0.0.1 192.168.1.100(自分で決めたIPアドレス), saipi4.local(自分で決めたhostname), notes.kinoshita-lab.org(cludflareで設定したhostname) {
root * /var/www
file_server
}
@ -59,7 +61,7 @@ localhost, 127.0.0.1 192.168.1.100(自分で決めたIPアドレス) saipi4.loca
<!doctype html>
<html>
<head>
<title>This is the title of the webpage!</title>
<title>AYBABTU</title>
</head>
<body>
<p>All your base are belong to us.</p>