commit(auto)
This commit is contained in:
parent
cc8ca0ef05
commit
a7c48db463
2 changed files with 6 additions and 4 deletions
|
@ -38,7 +38,7 @@ $ sudo apt full-upgrade
|
||||||
$ sudo reboot (最新にしたので再起動)
|
$ sudo reboot (最新にしたので再起動)
|
||||||
```
|
```
|
||||||
|
|
||||||
### WEBサーバーを入れる
|
### WEBサーバー
|
||||||
- [[20240205150537 Caddyをraspi4にインストール|Caddyをraspi4にインストール]]
|
- [[20240205150537 Caddyをraspi4にインストール|Caddyをraspi4にインストール]]
|
||||||
- [[20240205164639 Caddyの設定|Caddyの設定]]
|
- [[20240205164639 Caddyの設定|Caddyの設定]]
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
# 20240205150537 Caddyをraspi4にインストール
|
# 20240205150537 Caddyをraspi4にインストール
|
||||||
#raspi #caddy #web_server
|
#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 は利用できない。
|
[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 以下に作成
|
Caddyfileを /etc 以下に作成
|
||||||
```
|
```
|
||||||
$ sudo mkdir /etc/caddy/
|
$ sudo mkdir /etc/caddy/
|
||||||
$ sudo toucn /etc/caddy/Caddyfile
|
$ sudo touch /etc/caddy/Caddyfile
|
||||||
|
$ sudo chmod a+rw /etc/caddy/Caddyfile
|
||||||
```
|
```
|
||||||
|
|
||||||
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
|
root * /var/www
|
||||||
file_server
|
file_server
|
||||||
}
|
}
|
||||||
|
@ -59,7 +61,7 @@ localhost, 127.0.0.1 192.168.1.100(自分で決めたIPアドレス) saipi4.loca
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>This is the title of the webpage!</title>
|
<title>AYBABTU</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<p>All your base are belong to us.</p>
|
<p>All your base are belong to us.</p>
|
||||||
|
|
Loading…
Reference in a new issue