Raspberry Piにnginxを導入.
とりあえず,公開.

まずは,インストール.
nginxはphp-fpmを使用し,cgiのように動かす必要がある.

pacman -Sy nginx
pacman -S php 
pacman -S php-fpm

nginxとphpを起動.

systemctl enable nginx.service
systemctl start nginx
systemctl enable php-fpm.service
systemctl start php-fpm

/etc/nginx/nginx.confを編集.
ドキュメントルートとphpが動くように設定.

http {
     access_log logs/access.log
     server {
          location / {
          #    root   /usr/share/nginx/html;
               root   /srv/http;
               index  index.html index.htm index.php;
          }
          location ~ \.php$ {
               root           /srv/http;
               fastcgi_pass   unix:/run/php-fpm/php-fpm.sock;
               fastcgi_index  index.php;
               include        fastcgi.conf;
          }
    }
}