osclassをnginxで動作させる時の設定

cd /tmp
wget http://static.osclass.org/download/osclass.3.3.2.zip
mkdir /var/www/vhosts/osclass
cd /var/www/vhosts/osclass
unzip /tmp/osclass.3.3.2.zip
chown -R nginx: /var/www/vhosts/osclass
vim /etc/nginx/conf.d/www.conf
server {
    listen       80;
    server_name  _;
    root         /var/www/vhosts/osclass;

    location / {
        index index.php index.html index.htm;
    }

    location ~ \.php$ {
        fastcgi_pass   phpfpm;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        fastcgi_intercept_errors on;
        fastcgi_ignore_client_abort off;
        fastcgi_connect_timeout 60;
        fastcgi_send_timeout 180;
        fastcgi_read_timeout 180;
        fastcgi_buffer_size 128k;
        fastcgi_buffers 4 256k;
        fastcgi_busy_buffers_size 256k;
        fastcgi_temp_file_write_size 256k;
        include        fastcgi_params;
    }
}