cd /usr/ports/www/nginx make install clean
/usr/local/etc/php.ini
cd /usr/local/etc cp php.ini-production php.ini
server { location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+\.php)(/.+)$; if (!-f $document_root$fastcgi_script_name) { return 404; } # fastcgi_pass 127.0.0.1:9000; fastcgi_pass unix:/var/run/php-fpm.socket; fastcgi_index index.php; include fastcgi_params; # upstream sent too big header というエラーログが出るとき用対応 fastcgi_buffers 8 16k; fastcgi_buffer_size 32k; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; fastcgi_param HTTPS on; } }