location /api/ {
fastcgi_pass unix:/var/spool/php-fpm.socket;
root /home/web/htdocs/m/;
fastcgi_index microcosm.php;
include fastcgi_params;
fastcgi_split_path_info ^(\/api)(.*)$;
fastcgi_param SCRIPT_FILENAME $document_root/microcosm.php;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
location /api/ {
rewrite ^/api/(.*)$ /m/microcosm.php/$1 last;
}
2012/02/22 14:04:03 [error] 67145#0: *4 "/home/web/htdocs/m/microcosm.php/0.6/index.php" is not found (20: Not a directory), client: 10.xx.xx.xx, server: localhost, request: "GET /api/0.6/ HTTP/1.1", host: "10.yy.yy.yy"
2012/02/22 14:04:34 [error] 67145#0: *4 "/home/web/htdocs/m/microcosm.php/index.php" is not found (20: Not a directory), client: 10.xx.xx.xx, server: localhost, request: "GET /m/microcosm.php/ HTTP/1.1", host: "10.yy.yy.yy"
context motiv-poll {
s =>
{
Dial(SIP/900&SIP/901,60,t); // перенаправить входящий на внутренние номера
};
sms => {
Verbose(Incoming SMS from ${CALLERID(num)} ${SMS});
System(/home/fsa/asterisk/sms.sh ${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)} ${CALLERID(num)} "${SMS}");
Hangup();
};
};