Closed5
Raspberry Pi nginx setup for local

Overview
自宅ネットワーク内でのみ閲覧可能な静的Webページのホスティングを行う

Install nginx
sudo apt-get update
sudo apt-get upgrade
sudo apt install curl gnupg2 ca-certificates lsb-release debian-archive-keyring
sudo apt-get install nginx

Start
sudo systemctl start nginx
sudo systemctl enable nginx
Stop
sudo systemctl stop nginx
sudo systemctl disable nginx

Samba
sudo apt-get install samba
sudo vi /etc/samba/smb.conf
sudo systemctl restart smbd
add to smb.conf
[pi]
comment = Samba sharing
path = /var/www
force user = pi
guest ok = no
create mask = 0666
directory mask = 0777
read only = no
このスクラップは2023/01/22にクローズされました