location ~*/parser/ {
root /var/www/example/sites/example.com;
error_log /var/www/example/sites/logs/nginx_error_parser.log;
index index.php;
}
location /parser/ {
rewrite ^(.*)$ /parser/index.php permanent;
}
location ~ /parser/.+\.php$ {
error_log /var/www/theinsider/sites/logs/nginx_error_parser.log;
root /var/www/theinsider/sites/theinsider.ua;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_intercept_errors on;
fastcgi_buffers 64 64k;
fastcgi_buffer_size 256k;
fastcgi_pass unix:/var/run/php5-fpm.sock;
}