есть рабочий конфиг
location ~ ^/ajax/not/ {
fastcgi_index index.php;
try_files $uri $uri/ /ajax/not/index.php?$query_string;
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ ^/ajax/set/ {
fastcgi_index index.php;
try_files $uri $uri/ /ajax/set/index.php?$query_string;
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
а сделать одно общее правило для таких случаев?